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 35095d9 commit cbd69bbCopy full SHA for cbd69bb
.github/workflows/issue-status-helper.yml
@@ -3,7 +3,7 @@ on:
3
issues:
4
types: [labeled]
5
jobs:
6
- routed:
+ ensure_one_status:
7
runs-on: ubuntu-latest
8
if: "startsWith(github.event.label.name, 'Status: ')"
9
steps:
@@ -12,5 +12,5 @@ jobs:
12
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13
GH_REPO: ${{ github.repository }}
14
run: |
15
- labels_to_remove=$(gh api "/repos/$GH_REPO/labels" -q '[.[].name | select(startswith("Status: ") and . != "${{ github.event.label.name }}")] | join(",")')
+ labels_to_remove=$(gh api --paginate "/repos/$GH_REPO/labels" -q '[.[].name | select(startswith("Status: ") and . != "${{ github.event.label.name }}")] | join(",")')
16
gh issue edit ${{ github.event.issue.number }} --remove-label "$labels_to_remove" --add-label "${{ github.event.label.name }}"
0 commit comments