Skip to content

Commit 95300df

Browse files
authored
Only allow open source contributors to .take good first issues (#33492)
### Details: - There have been multiple instances where open source contributors would pick up non-good-first-issues and work on them, causing confusion - This change limits the `.take` functionality to work only on issues with `good first issue` labels - Tested in p-wysocki#90 ### Tickets: - N/A, topic comes from an email thread Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
1 parent 87b9152 commit 95300df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/assign_issue.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ jobs:
8686
const user = context.payload.comment.user.login;
8787
8888
if (comment === ".take") {
89+
if (!issue.labels?.some(l => l.name.toLowerCase() === LABEL)) {
90+
console.log(`Issue #${issue.number} - not a good first issue, ignoring .take command`);
91+
return;
92+
}
8993
await github.rest.issues.addAssignees({
9094
owner: context.repo.owner,
9195
repo: context.repo.repo,

0 commit comments

Comments
 (0)