Skip to content

Commit

Permalink
Auto-assign maintainers only to non-assigned external issues
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed Apr 28, 2023
1 parent f07a84f commit d93974d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/issue-auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
const assignees = ['mstoykov', 'imiric, 'codebien', 'olegbespalov', 'oleiade'];
const assigneeCount = 1;
// Do not automatically assign users if someone was already assigned or it was opened by a maintainer
if (context.payload.issue.assignees.length > 0 || assignees.contains(context.payload.issue.user.login)) {

This comment has been minimized.

Copy link
@mstoykov

mstoykov Apr 28, 2023

Contributor

For future me these are docs.

This comment has been minimized.

Copy link
@na--
return;
}
github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit d93974d

Please sign in to comment.