Skip to content

Commit

Permalink
🛠️ Exclude bot account from auto assignment (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
CybAtax committed May 25, 2024
1 parent b060e58 commit e922cc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/author-pr-assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
const issue_number = context.issue.number;
const author = context.payload.pull_request.user.login;
if (author.includes("bot")) {
core.info(`Cannot add bot account (${author}) as assignee`);
return;
}
const assignmentResult = await github.rest.issues.addAssignees({
owner,
repo,
Expand Down

0 comments on commit e922cc6

Please sign in to comment.