16 lines
550 B
YAML
16 lines
550 B
YAML
name: Unassign
|
|
#Runs when a contributor has unassigned themselves from the issue and adds 'help wanted'
|
|
on:
|
|
issues:
|
|
types: unassigned
|
|
|
|
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
|