Skip to content

Commit

Permalink
Use PR number?
Browse files Browse the repository at this point in the history
  • Loading branch information
CybAtax committed May 25, 2024
1 parent 21e624c commit 49b1bf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/author-pr-assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
const assignmentResult = await github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
issue_number: context.payload.pull_request.number,
assignee: [author],
});
Expand All @@ -33,7 +33,7 @@ jobs:
const assigneesResult = await github.rest.issues.listAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number
issue_number: context.payload.pull_request.number
});
core.debug(JSON.stringify(assigneesResult));
core.info(`Assignees for PR: ${JSON.stringify(assigneesResult.data.map(({login}) => login))}`);

0 comments on commit 49b1bf3

Please sign in to comment.