Skip to content

Commit

Permalink
use number instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Jun 24, 2021
1 parent 4716a3e commit 8b82508
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 @@ -37,7 +37,7 @@ async function main() {

console.log('——', context);
const { action, eventName } = context.payload;
const { title, draft, html_url: prHtmlUrl, id: prId } = context.payload.pull_request;
const { title, draft, html_url: prHtmlUrl, number: prId } = context.payload.pull_request;

const foundIssuesIds = findIssuesInText(title);
if (issuesRequired && foundIssuesIds.length === 0) {
Expand Down

0 comments on commit 8b82508

Please sign in to comment.