From 49b1bf35d1390fa481328d904fe01aeee8f7b2a6 Mon Sep 17 00:00:00 2001 From: CybAtax <62847599+CybAtax@users.noreply.github.com> Date: Sat, 25 May 2024 22:12:05 +0200 Subject: [PATCH] Use PR number? --- .github/workflows/author-pr-assignment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/author-pr-assignment.yml b/.github/workflows/author-pr-assignment.yml index d0a2589..9cca50c 100644 --- a/.github/workflows/author-pr-assignment.yml +++ b/.github/workflows/author-pr-assignment.yml @@ -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], }); @@ -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))}`); \ No newline at end of file