Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Limit Good First Issues to a single assignee (#33543)

Przemyslaw Wysocki5bd9dd88051c
diff --git a/.github/workflows/assign_issue.yml b/.github/workflows/assign_issue.yml
index 1b5fe2714e0..4f5498c57b4 100644
--- a/.github/workflows/assign_issue.yml
+++ b/.github/workflows/assign_issue.yml
@@ -90,6 +90,17 @@ jobs:
console.log(`Issue #${issue.number} - not a good first issue, ignoring .take command`);
return;
}
+ if (issue.assignees?.length) {
+ const currentAssignee = issue.assignees[0].login;
+ await github.rest.issues.createComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: issue.number,
+ body: `@${user} this issue is already assigned to a contributor.`
+ });
+ console.log(`Issue #${issue.number} already assigned to ${currentAssignee}, ignoring .take from ${user}`);
+ return;
+ }
await github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,