mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:51:43 +00:00
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:
parent
d642ab5608
commit
8666ccfe97
34
.github/workflows/label-move.yml
vendored
34
.github/workflows/label-move.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user