scikit-learn/.github/workflows/unassign.yml

22 lines
769 B
YAML

name: Unassign
#Runs when a contributor has unassigned themselves from the issue and adds 'help wanted'
on:
issues:
types: unassigned
# Restrict the permissions granted to the use of secrets.GITHUB_TOKEN in this
# github actions workflow:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
permissions:
issues: write
jobs:
one:
runs-on: ubuntu-latest
steps:
- name:
if: github.event.issue.state == 'open'
run: |
echo "Marking issue ${{ github.event.issue.number }} as help wanted"
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"labels": ["help wanted"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels