labeler-review.yml 803 B

1234567891011121314151617181920212223
  1. name: "Labels: Approved"
  2. on:
  3. pull_request_review:
  4. types: [submitted]
  5. jobs:
  6. add_label:
  7. # Change the repository name after you've made sure the team name is correct for your fork!
  8. if: ${{ (github.repository == 'space-wizards/space-station-14') && (github.event.review.state == 'APPROVED') }}
  9. permissions:
  10. contents: read
  11. pull-requests: write
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: tspascoal/get-user-teams-membership@v3
  15. id: checkUserMember
  16. with:
  17. username: ${{ github.actor }}
  18. team: "content-maintainers,junior-maintainers"
  19. GITHUB_TOKEN: ${{ secrets.LABELER_PAT }}
  20. - if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }}
  21. uses: actions-ecosystem/action-add-labels@v1
  22. with:
  23. labels: "S: Approved"