chore: update GitHub automation for IAM team (#37309)

This commit is contained in:
Joe Chen 2022-06-24 16:58:27 +08:00 committed by GitHub
parent ecd29b4503
commit c24eb5d9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 8 deletions

4
.github/teams.yml vendored
View File

@ -5,9 +5,9 @@ team/frontend-platform:
- '@pdubroy'
- '@oleggromov'
team/iam-admin-experience:
team/iam:
- '@unknwon'
- '@RafLeszczynski'
- '@jplahn'
- '@miveronese'
- '@ryphil'
- '@pietrorosa77'

View File

@ -247,23 +247,23 @@ jobs:
}
}
}' -f project=$PROJECT_ID -f node_id=$NODE_ID
iam-and-admin-exp-board:
iam-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') }}
if: ${{ contains(github.event.issue.labels.*.name, 'team/iam') }}
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') }}
if: ${{ contains(github.event.pull_request.labels.*.name, 'team/iam') }}
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
- name: Add to IAM team board
if: ${{ env.NODE_ID != '' }}
run: |
gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query='

View File

@ -24,4 +24,4 @@ jobs:
team/frontend-platform=@taylorsperry @jasongornall
team/repo-management=@jplahn
team/devops=@sourcegraph/cloud-devops
team/iam-admin-experience=@sourcegraph/iam-and-admin-experience
team/iam=@sourcegraph/iam

View File

@ -1,5 +1,7 @@
name: team-label
on: pull_request
on:
pull_request:
types: [opened, reopened]
jobs:
team-labeler:
runs-on: ubuntu-latest