Requesting descriptive errors explaining what went wrong with a request, or even what likely went wrong #10206
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: Auto-remove "awaiting response" label | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
auto-remove-awaiting-response-label: | |
name: Run | |
if: "${{ contains(github.event.issue.labels.*.name, 'status: awaiting response') }}" | |
runs-on: ubuntu-latest | |
env: | |
# Case insensitive. Replace spaces with `%20`. | |
LABEL_TO_REMOVE: 'status:%20awaiting%20response' | |
steps: | |
- name: Run | |
run: |- | |
curl -X DELETE \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
"${{ github.event.comment.issue_url }}/labels/$LABEL_TO_REMOVE" |