We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9113999 + c2c7aa4 commit 423720bCopy full SHA for 423720b
.github/workflows/add-needs-verification-label.yml
@@ -0,0 +1,30 @@
1
+name: Add Needs Verification Label
2
+
3
+on:
4
+ project_card:
5
+ types: [moved]
6
7
+jobs:
8
+ add-label:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Check if the issue is moved to Done
12
+ id: check_move
13
+ run: |
14
+ if [[ "${{ github.event.project_card.column_id }}" != "98236657" ]]; then
15
+ echo "Not moved to Done column. Exiting."
16
+ exit 0
17
+ fi
18
19
+ - name: Add Needs Verification Label
20
+ if: steps.check_move.outputs.result == 'true'
21
+ uses: actions/github-script@v6
22
+ with:
23
+ script: |
24
+ const issue_number = context.payload.project_card.content_url.split('/').pop();
25
+ await github.issues.addLabels({
26
+ owner: context.repo.owner,
27
+ repo: context.repo.repo,
28
+ issue_number: issue_number,
29
+ labels: ['Needs verification']
30
+ });
0 commit comments