Skip to content

Commit

Permalink
Merge pull request #654 from ayushkhandelwal317/master
Browse files Browse the repository at this point in the history
Allow new github event type i.e `pull_request_target`
  • Loading branch information
mnaumanali94 authored Dec 20, 2023
2 parents bb2688d + 4f080e7 commit 4017b8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface RepositoryInfo {
const extractSha = (eventName: string, event: any): E.Either<Error, string> => {
switch (eventName) {
case 'pull_request':
case 'pull_request_target':
return E.right(event.pull_request ? event.pull_request.head.sha : event.after);
case 'push':
return E.right(event.after);
Expand Down

0 comments on commit 4017b8a

Please sign in to comment.