forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.45 KB
/
gardener_open_pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Add new pull requests to Gardener project board for triage
name: Add PR to Gardener board
on:
pull_request_target:
types:
- opened
- reopened
jobs:
add-contributor-to-project:
name: Add contributor PR to Gardener project board
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Generate authentication token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_ID }}
private_key: ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_PRIVATE_KEY }}
- uses: tspascoal/get-user-teams-membership@v2
id: checkVectorMember
with:
username: ${{ github.actor }}
team: vector
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- uses: actions/add-to-project@v0.5.0
if: ${{ steps.checkVectorMember.outputs.isTeamMember == 'false' }}
with:
project-url: https://github.com/orgs/vectordotdev/projects/49
github-token: ${{ secrets.GH_PROJECT_PAT }}
add-dependabot-to-project:
name: Add dependabot PR to Gardener project board
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/vectordotdev/projects/49
github-token: ${{ secrets.GH_PROJECT_PAT }}