Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed Sep 18, 2021
1 parent d8ccd53 commit d12a0ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const run = async () => {
}
if (!eventName || !action)
throw new Error("⛔ Event Name or action missing");
await app.IssueActionHandler((0, util_1.eventType)(eventName, action), (0, util_1.getIssue)(github.context.payload));
await app.IssueActionHandler((0, util_1.eventType)(eventName, action), (0, util_1.getIssue)(github.context.payload.issue));
};
exports.run = run;
const main = async (eventType, issue) => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const run = async () => {
return;
}
if (!eventName || !action) throw new Error("⛔ Event Name or action missing");
await app.IssueActionHandler(eventType(eventName, action), getIssue(github.context.payload));
await app.IssueActionHandler(eventType(eventName, action), getIssue(github.context.payload.issue));
}

const main = async (eventType: string, issue: Issue) => {
Expand Down

0 comments on commit d12a0ea

Please sign in to comment.