Skip to content

Commit

Permalink
Allow pull_request_target event (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbernius authored Sep 15, 2020
1 parent 1687d25 commit e5793f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-action-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
const getActionData = githubContext => {
const {eventName, payload} = githubContext;
if (eventName !== 'pull_request' && eventName !== 'issues') {
if (eventName !== 'pull_request' && eventName !== 'pull_request_target' && eventName !== 'issues') {
throw new Error(`Only pull requests or issues allowed, received:\n${eventName}`);
}

Expand Down

0 comments on commit e5793f1

Please sign in to comment.