-
Notifications
You must be signed in to change notification settings - Fork 12
30 lines (26 loc) · 934 Bytes
/
To Do.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Add Issue to "To-Do" Status on Label
on:
issues:
types:
- opened
- labeled
jobs:
add-to-todo:
runs-on: ubuntu-latest
steps:
- name: Check if Issue Has "data queue" Label
id: check_label
uses: actions/github-script@v6
with:
script: |
const labelName = context.payload.label ? context.payload.label.name : null;
const issueLabels = context.payload.issue.labels.map(label => label.name);
return labelName === 'data queue' || issueLabels.includes('data queue');
- name: Update Project Item Status to "To-Do"
if: steps.check_label.outputs.result == 'true'
uses: nipe0324/[email protected]
with:
project-url: https://github.com/users/ben-domingue/projects/1
github-token: ${{ secrets.PROJECTS_TEST }}
field-name: Status
field-value: Todo