From 6e957bb6fa1edf70fbffd5cf410596f9ee5c3739 Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Mon, 27 Nov 2023 11:05:30 -0800 Subject: [PATCH] Remove customer label Signed-off-by: Aaron Crawfis --- .github/workflows/issues.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 7699e96a3..fed222313 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -9,36 +9,6 @@ concurrency: cancel-in-progress: false jobs: - customer: - name: Add a label if Issue created by customer - if: github.event.action == 'opened' - runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }} - steps: - - name: Add label if author in preview team - env: - ISSUE: ${{ github.event.issue.html_url }} - AUTHOR: ${{ github.actor }} - run: | - MEMBERS=$(gh api orgs/radius-project/teams/Radius-Preview/members | jq -r '.[] | .login') - ADMINS=$(gh api orgs/radius-project/teams/Radius-Admin/members | jq -r '.[] | .login') - for USER in $MEMBERS; do - if [[ "$USER" == "$AUTHOR" ]]; then - ISADMIN=false - for ADMIN in $ADMINS; do - if [[ "$USER" == "$ADMIN" ]]; then - echo "$USER is an admin, skipping" - ISADMIN=true - fi - done - if [[ "$ISADMIN" == "false" ]]; then - echo "Adding label for issue $ISSUE" - gh issue edit $ISSUE --add-label "customer-issue" - fi - fi - done - ado: name: Sync issue to Azure DevOps runs-on: ubuntu-latest