Skip to content

Commit

Permalink
fix: support pull_request_target event (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhwhite authored Sep 6, 2023
1 parent a89d5d8 commit 8571a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion find-successful-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let BASE_SHA;

const HEAD_SHA = execSync(`git rev-parse HEAD`, { encoding: 'utf-8' });

if (eventName === 'pull_request') {
if (['pull_request','pull_request_target'].includes(eventName)) {
BASE_SHA = execSync(`git merge-base origin/${mainBranchName} HEAD`, { encoding: 'utf-8' });
} else {
try {
Expand Down

0 comments on commit 8571a20

Please sign in to comment.