File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments