Skip to content

Commit

Permalink
ci: support pull_request_target (#46)
Browse files Browse the repository at this point in the history
* ci: support pull_request_targer

* chore: build

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
SamTealeDrest and github-actions[bot] authored Oct 4, 2021
1 parent ab728c9 commit bb7199b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/skipChecks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export async function skipChecks(
let head: string | undefined

switch (context.eventName) {
case 'pull_request_target':
case 'pull_request':
head = context.payload.pull_request?.head?.sha
break
Expand Down

0 comments on commit bb7199b

Please sign in to comment.