From 549cd3a31565f21cfd650f3387c091837778239b Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Fri, 16 Aug 2024 18:39:57 +0100 Subject: [PATCH] Don't assign non-vscode issues to the team --- .github/workflows/auto_assign.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml index 4a0140c9c..f59f6c763 100644 --- a/.github/workflows/auto_assign.yml +++ b/.github/workflows/auto_assign.yml @@ -29,8 +29,14 @@ jobs: "KaanOzkan" ]; const author = "${{ github.event.issue.user.login }}"; + const issue = await github.rest.issues.get({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: ${{ github.event.issue.number }} + }); + const hasNonVSCodeLabel = issue.data.labels.some(label => label.name === 'non-vscode'); - if (!fullTeam.includes(author)) { + if (!fullTeam.includes(author) && !hasNonVSCodeLabel) { const dxReviewers = [ "andyw8", "vinistock",