From c0783ff9d7394e2d42dbbf9b327697ac135a725d Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Fri, 12 Jan 2024 11:11:02 -0800 Subject: [PATCH] Remove old issues workflow (#7020) # Description This PR removes a stale workflow that we used to leverage prior to launching. It references teams and labels that no longer exist and is no longer needed. ## Type of change - This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional). Signed-off-by: Aaron Crawfis Co-authored-by: Young Bu Park --- .github/workflows/issues.yaml | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/workflows/issues.yaml diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml deleted file mode 100644 index 23d81019c7..0000000000 --- a/.github/workflows/issues.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: Issues Automation - -on: - issues: - types: [opened] - -jobs: - customer: - name: Add a label if Issue created by customer - 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