Decide whether to use custom types or interfaces for our project #77
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 with Done Label | |
on: | |
issues: | |
types: | |
- labeled | |
jobs: | |
close_issue_if_done: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if the label is "Done" | |
if: contains(github.event.label.name, 'Done') | |
run: | | |
echo "The issue is labeled 'Done', proceeding to close the issue." | |
curl -X PATCH \ | |
-H "Authorization: token ${{ secrets.TOKEN_GITHUB }}" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/FAC30/PRO03_Gaj_Jason_Max_Tania/issues/${{ github.event.issue.number }} \ | |
-d '{"state": "closed"}' |