From c6639f1f3365b4440e9071d535785f067639cfe3 Mon Sep 17 00:00:00 2001 From: Tabatha Zeitke Date: Tue, 27 Aug 2024 12:19:30 -0500 Subject: [PATCH] chore: remove i18n project board automation --- .github/workflows/issue-triage.yml | 27 --------------------------- .github/workflows/pr-triage.yml | 27 --------------------------- 2 files changed, 54 deletions(-) delete mode 100644 .github/workflows/issue-triage.yml delete mode 100644 .github/workflows/pr-triage.yml diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml deleted file mode 100644 index 9789fd35d4b..00000000000 --- a/.github/workflows/issue-triage.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Auto-triage issues to project boards - -on: - issues: - types: [opened, labeled] - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COLUMN_NAME: Hero to triage # column where issues will be created - -jobs: - localization_project: - runs-on: ubuntu-latest - env: - PROJECT_ID: 12004783 - PROJECT_NAME: Docs Site Localization PRs and Issues - name: Triage to Localization Project - steps: - - name: Triages NEW issues to the Localization Project - if: | - github.event.action == 'labeled' && - contains(github.event.issue.labels.*.name, 'localization') - run: | - HEADER="Accept: application/vnd.github.inertia-preview+json" - ISSUE_ID=${{ github.event.issue.id }} - COLUMN=$(gh api -H "$HEADER" projects/$PROJECT_ID/columns --jq ".[] | select(.name == \"$COLUMN_NAME\").id") - gh api -H "$HEADER" -X POST projects/columns/$COLUMN/cards -f content_type='Issue' -F content_id=$ISSUE_ID diff --git a/.github/workflows/pr-triage.yml b/.github/workflows/pr-triage.yml deleted file mode 100644 index ebc056b877b..00000000000 --- a/.github/workflows/pr-triage.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: pr triage - -on: - pull_request_target: - types: [opened, labeled] - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COLUMN_NAME: Hero to triage # column where issues will be created - -jobs: - localization_project: - name: pr added to the localization github board (optional) - runs-on: ubuntu-latest - env: - PROJECT_ID: 12004783 - PROJECT_NAME: Docs Site Localization PRs and Issues - steps: - - name: Triages NEW pull requests to the Localization Project - if: | - github.event.action == 'labeled' && - contains(github.event.pull_request.labels.*.name, 'translations') - run: | - HEADER="Accept: application/vnd.github.inertia-preview+json" - PR_ID=${{ github.event.pull_request.id }} - COLUMN=$(gh api -H "$HEADER" projects/$PROJECT_ID/columns --jq ".[] | select(.name == \"$COLUMN_NAME\").id") - gh api -H "$HEADER" -X POST projects/columns/$COLUMN/cards -f content_type='PullRequest' -F content_id=$PR_ID