-
Notifications
You must be signed in to change notification settings - Fork 37
30 lines (28 loc) · 1 KB
/
on-add-issue.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
name: Add new issues to the Delivery Assurance project board
on:
issues:
types:
- opened
jobs:
initialize:
name: Initialize new issue
runs-on: ubuntu-latest
steps:
# Rather than use a personal access token to interact with the project, we
# can use this GitHub App. There's an API for exchanging app credentials
# for a short-term token, and we use that API here.
- name: get token
uses: tibdex/github-app-token@v1
id: app_token
with:
app_id: ${{ secrets.PROJECT_APP_ID }}
installation_id: ${{ secrets.PROJECT_INSTALLATION_ID }}
private_key: ${{ secrets.PROJECT_PRIVATE_KEY }}
# Now we can add the issue to the project board.
- name: add to project board
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/18F/projects/41
github-token: ${{ steps.app_token.outputs.token }}
labeled: compliance, Compliance
label-operator: NOT