mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-14 23:11:14 +00:00
add support for pull_request_target
Signed-off-by: Egor Kovetskiy <e.kovetskiy@gmail.com>
This commit is contained in:
parent
d6238b002a
commit
2be9acd8bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ``
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue