Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove redundant workflow #18491

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 9 additions & 25 deletions .github/workflows/issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,19 @@ env:
COLUMN_NAME: Hero to triage # column where issues will be created

jobs:
content_project:
runs-on: ubuntu-latest
env:
PROJECT_ID: 11873277
PROJECT_NAME: Docs PRs and Issues
name: Triage to Content Project
steps:
- name: Triages NEW issues to the Content Project
if: github.event.action == 'opened'
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

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

- 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
15 changes: 0 additions & 15 deletions .github/workflows/pr-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@ env:
COLUMN_NAME: Hero to triage # column where issues will be created

jobs:
content_project:
name: pr added to the docs github board (optional)
runs-on: ubuntu-latest
env:
PROJECT_ID: 11873277
PROJECT_NAME: Docs PRs and Issues
steps:
- name: Triages NEW pull requests to the Content Project
if: github.event.action == 'opened'
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

localization_project:
name: pr added to the localization github board (optional)
runs-on: ubuntu-latest
Expand Down
Loading