migrate label automation for extensibility

This change migrates the label automation from using the old board to the beta board
This commit is contained in:
Murat Sutunc 2021-09-28 10:34:23 -07:00 committed by GitHub
parent d642ab5608
commit 8666ccfe97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,6 @@ jobs:
move-labeled-or-milestoned-issue:
runs-on: ubuntu-latest
steps:
- uses: konradpabjan/move-labeled-or-milestoned-issue@v2.0
with:
action-token: "${{ secrets.LABELER_GITHUB_TOKEN }}"
project-url: "https://github.com/orgs/sourcegraph/projects/145"
column-name: "To Triage 📥"
label-name: "team/extensibility"
columns-to-ignore: "*"
- uses: konradpabjan/move-labeled-or-milestoned-issue@v2.0
with:
action-token: "${{ secrets.LABELER_GITHUB_TOKEN }}"
@ -147,3 +140,30 @@ jobs:
}
}
}' -f project=$PROJECT_ID -f node_id=$NODE_ID
extensibility-board:
runs-on: ubuntu-latest
env:
PROJECT_ID: MDExOlByb2plY3ROZXh0NDMyNg== # https://github.com/orgs/sourcegraph/projects/213
GITHUB_TOKEN: ${{ secrets.GH_PROJECTS_ACTION_TOKEN }}
steps:
- name: Get issue if relevant
if: ${{ contains(github.event.issue.labels.*.name, 'team/extensibility') }}
env:
NODE_ID: ${{ github.event.issue.node_id }}
run: echo 'NODE_ID='$NODE_ID >> $GITHUB_ENV
- name: Get pull request if relevant
if: ${{ contains(github.event.pull_request.labels.*.name, 'team/extensibility') }}
env:
NODE_ID: ${{ github.event.pull_request.node_id }}
run: echo 'NODE_ID='$NODE_ID >> $GITHUB_ENV
- name: Add to Extensibility board
if: ${{ env.NODE_ID != '' }}
run: |
gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query='
mutation($project:ID!, $node_id:ID!) {
addProjectNextItem(input: {projectId: $project, contentId: $node_id}) {
projectNextItem {
id
}
}
}' -f project=$PROJECT_ID -f node_id=$NODE_ID