-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.16 KB
/
add-to-project.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
# Add To Project
#
# Add new issues and pull requests to the project board.
#
# References:
#
# - https://docs.github.com/actions/learn-github-actions/contexts
# - https://docs.github.com/actions/learn-github-actions/expressions
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issues
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issues
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
# - https://github.com/actions/add-to-project
---
name: add-to-project
on:
issues:
types:
- opened
pull_request:
types:
- opened
- synchronize
jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- id: add-item
name: Add ${{ format('#{0}', github.event.number) }} to project
uses: actions/[email protected]
with:
github-token: ${{ secrets.PAT_REPO }}
project-url: |
${{ format('{0}/orgs/{1}/projects/{2}', github.server_url, github.repository_owner, secrets.GH_PROJECT_ID) }}