Skip to content

Commit fd203ad

Browse files
authored
Merge pull request #335 from olafurpg/issues-board
Add new issues to the Code Intel project board
2 parents 647def5 + 0d156bd commit fd203ad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/project-board.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Add new issues to the Code Intel project board
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
jobs:
7+
# Uses issues beta API - see https://docs.github.com/en/issues/trying-out-the-new-projects-experience/automating-projects#example-workflow
8+
code-intel-board:
9+
runs-on: ubuntu-latest
10+
env:
11+
PROJECT_ID: MDExOlByb2plY3ROZXh0NDI1MA== # https://github.com/orgs/sourcegraph/projects/211
12+
GITHUB_TOKEN: ${{ secrets.GH_PROJECTS_ACTION_TOKEN }}
13+
steps:
14+
- name: Add to board
15+
env:
16+
NODE_ID: ${{ github.event.issue.node_id }}
17+
run: |
18+
gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query='
19+
mutation($project:ID!, $node_id:ID!) {
20+
addProjectNextItem(input: {projectId: $project, contentId: $node_id}) {
21+
projectNextItem {
22+
id
23+
}
24+
}
25+
}' -f project=$PROJECT_ID -f node_id=$NODE_ID

0 commit comments

Comments
 (0)