clean-closed.yml 843 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # clean-closed.yml
  3. # Remove obsolete labels when an Issue or PR is closed
  4. #
  5. name: Clean Closed
  6. on:
  7. pull_request:
  8. types: [closed]
  9. issues:
  10. types: [closed]
  11. jobs:
  12. remove_label:
  13. runs-on: ubuntu-22.04
  14. strategy:
  15. matrix:
  16. label:
  17. - "S: Don't Merge"
  18. - "S: Hold for 2.1"
  19. - "S: Please Merge"
  20. - "S: Please Test"
  21. - "help wanted"
  22. - "Bug: Potential ?"
  23. - "Needs: Discussion"
  24. - "Needs: Documentation"
  25. - "Needs: More Data"
  26. - "Needs: Patch"
  27. - "Needs: Testing"
  28. - "Needs: Work"
  29. steps:
  30. - uses: actions/checkout@v4
  31. - name: Remove Labels
  32. uses: actions-ecosystem/action-remove-labels@v1
  33. with:
  34. github_token: ${{ github.token }}
  35. labels: ${{ matrix.label }}