Skip to content

Commit bf780cf

Browse files
added addToProject automation
1 parent 2b3437e commit bf780cf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/addToProject.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
name: Auto Assign to Project(s)
3+
4+
on:
5+
issues:
6+
types: [opened, edited, milestoned]
7+
pull_request:
8+
types: [opened, edited, milestoned]
9+
env:
10+
MY_GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}
11+
12+
jobs:
13+
assign_one_project:
14+
runs-on: ubuntu-latest
15+
name: Assign milestoned to Project
16+
steps:
17+
- name: Assign issues with milestones to project
18+
uses: elastic/[email protected]
19+
if: github.event.issue && github.event.issue.milestone
20+
with:
21+
project: 'https://github.com/orgs/elastic/projects/454'
22+
project_id: '5882982'
23+
column_name: 'Planned'
24+
- name: Assign new pull requests to project
25+
uses: elastic/[email protected]
26+
if: github.event.action == 'opened' && github.event.pull_request
27+
with:
28+
project: 'https://github.com/orgs/elastic/projects/454'
29+
project_id: '5882982'
30+
column_name: 'In Progress'

0 commit comments

Comments
 (0)