mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-10-07 11:57:30 +00:00
feat: add support for pull_request_target and only-new-issues (#506)
This commit is contained in:
1 parent
d6238b002a
commit
bf6479d5ec
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -89177,7 +89177,7 @@ async function fetchPatch() {
|
||||
return ``;
|
||||
}
|
||||
const ctx = github.context;
|
||||
if (ctx.eventName !== `pull_request`) {
|
||||
if (ctx.eventName !== `pull_request` && ctx.eventName !== `pull_request_target`) {
|
||||
core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`);
|
||||
return ``;
|
||||
}
|
||||
|
||||
+1
-1
@@ -89177,7 +89177,7 @@ async function fetchPatch() {
|
||||
return ``;
|
||||
}
|
||||
const ctx = github.context;
|
||||
if (ctx.eventName !== `pull_request`) {
|
||||
if (ctx.eventName !== `pull_request` && ctx.eventName !== `pull_request_target`) {
|
||||
core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`);
|
||||
return ``;
|
||||
}
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ async function fetchPatch(): Promise<string> {
|
||||
}
|
||||
|
||||
const ctx = github.context
|
||||
if (ctx.eventName !== `pull_request`) {
|
||||
if (ctx.eventName !== `pull_request` && ctx.eventName !== `pull_request_target`) {
|
||||
core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`)
|
||||
return ``
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user