Skip to content

Commit 9d0417c

Browse files
authored
Don't assign non-vscode issues to the team (#2453)
1 parent 392d1aa commit 9d0417c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/auto_assign.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ jobs:
2929
"KaanOzkan"
3030
];
3131
const author = "${{ github.event.issue.user.login }}";
32+
const issue = await github.rest.issues.get({
33+
owner: context.repo.owner,
34+
repo: context.repo.repo,
35+
issue_number: ${{ github.event.issue.number }}
36+
});
37+
const hasNonVSCodeLabel = issue.data.labels.some(label => label.name === 'non-vscode');
3238
33-
if (!fullTeam.includes(author)) {
39+
if (!fullTeam.includes(author) && !hasNonVSCodeLabel) {
3440
const dxReviewers = [
3541
"andyw8",
3642
"vinistock",

0 commit comments

Comments
 (0)