Skip to content

Commit

Permalink
fix: for pull_request_target
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Aug 4, 2020
1 parent 3d313ea commit 44eb409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function run(): Promise<void> {
if (eventName === 'issues') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
issueNumber = (context.payload as any).issue.number;
} else if (eventName === 'pull_request') {
} else if (eventName === 'pull_request' || eventName === 'pull_request_target') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
issueNumber = (context.payload as any).number;
}
Expand Down

0 comments on commit 44eb409

Please sign in to comment.