From 8a1502750fd8fa216e60063b3fb1c67ecb1994b5 Mon Sep 17 00:00:00 2001 From: CybAtax <62847599+CybAtax@users.noreply.github.com> Date: Fri, 24 May 2024 21:57:08 +0200 Subject: [PATCH] Adjust log --- .github/workflows/author-pr-assignment.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/author-pr-assignment.yml b/.github/workflows/author-pr-assignment.yml index 21175ee..2c24992 100644 --- a/.github/workflows/author-pr-assignment.yml +++ b/.github/workflows/author-pr-assignment.yml @@ -20,19 +20,20 @@ jobs: script: | const author = context.payload.pull_request.user.login; - const result = await github.rest.issues.addAssignees({ + const assignmentResult = await github.rest.issues.addAssignees({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, assignee: [author], }); - core.debug(JSON.stringify(result)); + core.debug(JSON.stringify(assignmentResult)); core.info(`@${author} has been assigned to the pull request: #${context.issue.number}`); - const assignees = await github.rest.issues.listAssignees({ + const assigneesResult = await github.rest.issues.listAssignees({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number }); - core.info(`Assignees for PR: ${JSON.stringify(assignees)}`); \ No newline at end of file + core.debug(JSON.stringify(assigneeResult)); + core.info(`Assignees for PR: ${JSON.stringify(assignees.data.map(({login}) => login))}`); \ No newline at end of file