chore: add GitHub automation for IAM and Admin Exp team (#35453)

This commit is contained in:
Joe Chen 2022-05-17 21:11:41 +08:00 committed by GitHub
parent c93b8f0476
commit 84dcda0f45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

11
.github/teams.yml vendored
View File

@ -4,3 +4,14 @@ team/frontend-platform:
- '@valerybugakov'
- '@pdubroy'
- '@oleggromov'
team/iam-admin-experience:
- '@unknwon'
- '@RafLeszczynski'
- '@rafax'
- '@miveronese'
- '@ryphil'
- '@pietrorosa77'
- '@quinnkeast'
- '@pjlast'
- '@kopancek'

View File

@ -187,7 +187,7 @@ jobs:
env:
NODE_ID: ${{ github.event.pull_request.node_id }}
run: echo 'NODE_ID='$NODE_ID >> $GITHUB_ENV
- name: Add to Distribution board
- name: Add to Delivery board
if: ${{ env.NODE_ID != '' }}
run: |
gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query='
@ -247,3 +247,30 @@ jobs:
}
}
}' -f project=$PROJECT_ID -f node_id=$NODE_ID
iam-and-admin-exp-board:
runs-on: ubuntu-latest
env:
PROJECT_ID: PN_kwDOADy5QM4ABlJF # https://github.com/orgs/sourcegraph/projects/259
GITHUB_TOKEN: ${{ secrets.GH_PROJECTS_ACTION_TOKEN }}
steps:
- name: Get issue if relevant
if: ${{ contains(github.event.issue.labels.*.name, 'team/iam-admin-experience') }}
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/iam-admin-experience') }}
env:
NODE_ID: ${{ github.event.pull_request.node_id }}
run: echo 'NODE_ID='$NODE_ID >> $GITHUB_ENV
- name: Add to IAM and Admin Exp 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

View File

@ -25,3 +25,4 @@ jobs:
team/dev-experience=@taylorsperry @jhchabran @kstretch9
team/repo-management=@jplahn
team/devops=@sourcegraph/cloud-devops
team/iam-admin-experience=@sourcegraph/iam-and-admin-experience