We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ed686 commit bf9cf12Copy full SHA for bf9cf12
.github/workflows/add-issue-to-project.yaml
@@ -0,0 +1,28 @@
1
+name: Add Issue to main Project
2
+
3
+on:
4
+ issues:
5
+ types:
6
+ - opened
7
8
+jobs:
9
+ track_issue:
10
+ runs-on: cg-linux
11
+ steps:
12
+ # Generate token for GitHub app
13
+ - name: Generate token
14
+ id: generate-token
15
+ uses: actions/create-github-app-token@v1
16
+ with:
17
+ app-id: 1008511
18
+ private-key: ${{ secrets.CG_ISSUE_PROCESSOR_TOKEN }}
19
20
+ # Add the issue to the project
21
+ - name: Add issue to project
22
+ env:
23
+ GH_TOKEN: ${{ steps.generate-token.outputs.token }}
24
+ PROJECT_ID: 3
25
+ ISSUE_ID: ${{ github.event.issue.number }}
26
+ run: |
27
+ gh project item-add $PROJECT_ID --owner Catglobe --url https://github.com/$GITHUB_REPOSITORY/issues/$ISSUE_ID
28
0 commit comments