Skip to content

Commit 1f37763

Browse files
authored
Merge pull request AdobeDocs#28 from AdobeDocs/hg-comdox372-addtoproject
COMDOX-372 Add project board workflow
2 parents 9416e54 + 5fc5d87 commit 1f37763

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
##### Aggregate Commerce PRs and Issues into a respective Organizational Project #####
3+
4+
name: Add pull requests and issues to projects
5+
6+
on:
7+
pull_request_target:
8+
types:
9+
- opened
10+
issues:
11+
types:
12+
- opened
13+
14+
jobs:
15+
add-to-project:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Add to Commerce PR project
20+
if: github.event_name == 'pull_request_target'
21+
uses: actions/[email protected]
22+
with:
23+
project-url: https://github.com/orgs/AdobeDocs/projects/5 # The organizational project for pull requests
24+
github-token: ${{ secrets.COMMERCE_PROJECT_AUTOMATION }}
25+
26+
- name: Add to Commerce Issue project
27+
if: github.event_name == 'issues'
28+
uses: actions/[email protected]
29+
with:
30+
project-url: https://github.com/orgs/AdobeDocs/projects/6 # The organizational project for issues
31+
github-token: ${{ secrets.COMMERCE_PROJECT_AUTOMATION }}

0 commit comments

Comments
 (0)