Skip to content

Commit

Permalink
Adjust log
Browse files Browse the repository at this point in the history
  • Loading branch information
CybAtax committed May 24, 2024
1 parent ac692b4 commit 8a15027
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/author-pr-assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
core.debug(JSON.stringify(assigneeResult));
core.info(`Assignees for PR: ${JSON.stringify(assignees.data.map(({login}) => login))}`);

0 comments on commit 8a15027

Please sign in to comment.