Aufruf nicht möglich - State with ID jarvis.0.devices is not a valid state #283
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Close Issues | |
on: | |
issues: | |
types: [closed] | |
env: | |
GH_TOKEN: ${{ secrets.TOKEN }} | |
jobs: | |
remove-label: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Remove `ready-to-test` Label | |
run: | | |
# get closed issue with label "ready-to-test" | |
issues="$(gh issue list -s closed -l "#status: ready-to-test :heavy_check_mark:" --json id --jq '.[] | .id')" | |
# process issues | |
for issueId in $issues; do | |
gh api graphql -F issueId=$issueId -f query=' | |
mutation UpdateIssue_RemoveLabel($issueId: ID!) { | |
removeLabelsFromLabelable(input: { | |
labelIds: [ "LA_kwDODbcoCM8AAAABfBUdOw", "LA_kwDODbcoCM8AAAABfA96zA" ], | |
labelableId: $issueId | |
}) { | |
clientMutationId, | |
labelable { labels (first: 100) { nodes { name }} } | |
} | |
}' | |
done |