Skip to content

Commit f38b636

Browse files
committed
debug
1 parent 3f948de commit f38b636

1 file changed

Lines changed: 4 additions & 28 deletions

File tree

.github/workflows/assignIssue.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,15 @@ jobs:
66
applyTriageLabel:
77
name: Apply Triage Label
88
runs-on: ubuntu-latest
9-
# if: github.repository == 'microsoft/vscode-python' && github.event.labels.length == 0
9+
# if: github.repository == 'microsoft/vscode-jupyter'
1010
steps:
11-
- name: Debug
12-
run: |
13-
echo "${{github.event.issue.labels.length}}"
14-
echo "${{github.event.issue.assignees.length}}"
15-
shell: bash
16-
- name: Labels Count
17-
id: labels
18-
env:
19-
ISSUE_LABELS: ${{toJson(github.event.issue.labels)}}
20-
run: |
21-
echo ::set-output name=count::$(node -p -e "JSON.parse(process.env.ISSUE_LABELS).length")
22-
shell: bash
23-
- name: Assignees Count
24-
id: assignees
25-
env:
26-
ISSUE_ASSIGNEES: ${{toJson(github.event.issue.assignees)}}
27-
run: |
28-
echo ::set-output name=count::$(node -p -e "JSON.parse(process.env.ISSUE_ASSIGNEES).length")
29-
shell: bash
3011
- name: Should we proceed
3112
id: proceed
3213
env:
3314
ISSUE_LABELS: ${{toJson(github.event.issue.labels)}}
3415
ISSUE_ASSIGNEES: ${{toJson(github.event.issue.assignees)}}
3516
run: |
36-
echo ::set-output name=result::$(node -p -e "JSON.parse(process.env.ISSUE_ASSIGNEES).length === 0 && JSON.parse(process.env.ISSUE_LABELS).length === 0 ? 1 : 0")
37-
shell: bash
38-
- name: Print labels and assignees
39-
run: |
40-
echo ${{steps.labels.outputs.count}}
41-
echo ${{steps.assignees.outputs.count}}
42-
echo ${{steps.proceed.outputs.result}}
17+
echo ::set-output name=result::$(node -p -e "JSON.parse(process.env.ISSUE_ASSIGNEES).length === 0 && JSON.parse(process.env.ISSUE_LABELS).filter(item => item.name.indexOf('data science') >= 0).length === 1 ? 1 : 0")
4318
shell: bash
4419
- uses: actions/checkout@v2
4520
if: steps.proceed.outputs.result == 1
@@ -61,12 +36,13 @@ jobs:
6136
run: |
6237
echo ::set-output name=odd::$(node .github/workflows/week.js)
6338
shell: bash
64-
- name: Print day and week
39+
- name: Debug
6540
if: steps.proceed.outputs.result == 1
6641
run: |
6742
echo ${{steps.day.outputs.number}}
6843
echo ${{steps.week.outputs.odd}}
6944
echo ${{steps.hour.outputs.hour}}
45+
echo ${{steps.proceed.outputs.result}}
7046
shell: bash
7147
- name: Even late friday (David)
7248
if: steps.proceed.outputs.result == 1 && steps.week.outputs.odd == 0 && steps.day.outputs.number == 5 && steps.hour.outputs.hour >= 16

0 commit comments

Comments
 (0)