Skip to content

Commit b7cb204

Browse files
committed
feat: test adjustments to issue-experiment workflow
1 parent 921f841 commit b7cb204

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/issue-experiment.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: issue experiment
22

33
on:
44
issues:
5-
types: [labeled]
5+
types: [field_added]
66

77
jobs:
88
issue-experiment-proposed:
9-
if: github.event.label.name == format('status{0} proposed', ':')
9+
if: github.event.issue_field.id == '6591' && github.event.issue_field_value.option.name == 'proposed'
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -20,7 +20,7 @@ jobs:
2020
body: 'This issue has been marked as an experiment proposal! :test_tube: It will now enter a period of consultation during which we encourage the community to provide feedback on the proposed design. Please see the [experiment workflow documentation](https://taskfile.dev/experiments#workflow) for more information on how we release experiments.'
2121
})
2222
issue-experiment-draft:
23-
if: github.event.label.name == format('status{0} draft', ':')
23+
if: github.event.issue_field.id == '6591' && github.event.issue_field_value.option.name == 'draft'
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -34,7 +34,7 @@ jobs:
3434
body: 'This experiment has been marked as a draft! :sparkles: This means that an initial implementation has been added to the latest release of Task! You can find information about this experiment and how to enable it in our [experiments documentation](https://taskfile.dev/experiments). Please see the [experiment workflow documentation](https://taskfile.dev/experiments#workflow) for more information on how we release experiments.'
3535
})
3636
issue-experiment-candidate:
37-
if: github.event.label.name == format('status{0} candidate', ':')
37+
if: github.event.issue_field.id == '6591' && github.event.issue_field_value.option.name == 'candidate'
3838
runs-on: ubuntu-latest
3939
steps:
4040
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -48,7 +48,7 @@ jobs:
4848
body: 'This experiment has been marked as a candidate! :fire: This means that the implementation is nearing completion and we are entering a period for final comments and feedback! You can find information about this experiment and how to enable it in our [experiments documentation](https://taskfile.dev/experiments). Please see the [experiment workflow documentation](https://taskfile.dev/experiments#workflow) for more information on how we release experiments.'
4949
})
5050
issue-experiment-stable:
51-
if: github.event.label.name == format('status{0} stable', ':')
51+
if: github.event.issue_field.id == '6591' && github.event.issue_field_value.option.name == 'stable'
5252
runs-on: ubuntu-latest
5353
steps:
5454
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -62,7 +62,7 @@ jobs:
6262
body: 'This experiment has been marked as stable! :metal: This means that the implementation is now final and ready to be released. No more changes will be made and the experiment is safe to use in production! You can find information about this experiment and how to enable it in our [experiments documentation](https://taskfile.dev/experiments). Please see the [experiment workflow documentation](https://taskfile.dev/experiments#workflow) for more information on how we release experiments.'
6363
})
6464
issue-experiment-released:
65-
if: github.event.label.name == format('status{0} released', ':')
65+
if: github.event.issue_field.id == '6591' && github.event.issue_field_value.option.name == 'released'
6666
runs-on: ubuntu-latest
6767
steps:
6868
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -82,7 +82,7 @@ jobs:
8282
state: 'closed'
8383
})
8484
issue-experiment-abandoned:
85-
if: github.event.label.name == format('status{0} abandoned', ':')
85+
if: github.event.issue_field.id == '6591' && github.event.issue_field_value.option.name == 'abandoned'
8686
runs-on: ubuntu-latest
8787
steps:
8888
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -102,7 +102,7 @@ jobs:
102102
state: 'closed'
103103
})
104104
issue-experiment-superseded:
105-
if: github.event.label.name == format('status{0} superseded', ':')
105+
if: github.event.issue_field.id == '6591' && github.event.issue_field_value.option.name == 'superseded'
106106
runs-on: ubuntu-latest
107107
steps:
108108
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0

0 commit comments

Comments
 (0)