-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-assign maintainers only to non-assigned external issues
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
na--
Author
Member
|
||
return; | ||
} | ||
github.rest.issues.addAssignees({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
|
For future me these are docs.