Skip to content

Commit e955205

Browse files
authored
Add “Team:Docs” issues to obs-docs project (#8608)
1 parent f5f0272 commit e955205

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Add to obs-docs project
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
jobs:
7+
add_to_project:
8+
runs-on: ubuntu-latest
9+
if: ${{ github.event.label.name == 'Team:Docs'}}
10+
steps:
11+
- uses: octokit/[email protected]
12+
id: add_to_project
13+
with:
14+
headers: '{"GraphQL-Features": "projects_next_graphql"}'
15+
query: |
16+
mutation add_to_project($projectid:ID!,$contentid:ID!) {
17+
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
18+
projectNextItem {
19+
id
20+
}
21+
}
22+
}
23+
projectid: ${{ env.PROJECT_ID }}
24+
contentid: ${{ github.event.issue.node_id }}
25+
env:
26+
PROJECT_ID: "PN_kwDOAGc3Zs0iZw"
27+
GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}

0 commit comments

Comments
 (0)