Skip to content

Commit

Permalink
Add support for pull_request_target event (#102)
Browse files Browse the repository at this point in the history
The pull_request_target event is useful for forks as it will use the upstream repositories workflow file and GitHub will give it a read/write access token.
  • Loading branch information
JakeChampion authored Sep 17, 2020
1 parent f339fe9 commit 725a2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function executeGitHubAction(context, eventName, eventData) {
await handleBranchUpdate(context, eventName, eventData);
} else if (eventName === "status") {
await handleStatusUpdate(context, eventName, eventData);
} else if (eventName === "pull_request") {
} else if (eventName === "pull_request" || eventName === "pull_request_target") {
await handlePullRequestUpdate(context, eventName, eventData);
} else if (["check_suite", "check_run"].includes(eventName)) {
await handleCheckUpdate(context, eventName, eventData);
Expand Down

0 comments on commit 725a2b9

Please sign in to comment.