Skip to content

Decide whether to use custom types or interfaces for our project #78

Decide whether to use custom types or interfaces for our project

Decide whether to use custom types or interfaces for our project #78

Workflow file for this run

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"}'