Skip to content

Commit

Permalink
Accept pull_request_target event type
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jul 25, 2024
1 parent 728be8a commit a42e7d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion distribution/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 distribution/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getInputs() {
}

async function run() {
if (!['issues', 'pull_request'].includes(process.env.GITHUB_EVENT_NAME)) {
if (!['issues', 'pull_request', 'pull_request_target'].includes(process.env.GITHUB_EVENT_NAME)) {
throw new Error('Only `issues` and `pull_request` events are supported. Received: ' + process.env.GITHUB_EVENT_NAME);
}

Expand Down

0 comments on commit a42e7d3

Please sign in to comment.