GitHub Action
CODEOWNERs Superpowers!
v1.2.0
Latest version
A GitHub Action that powers the CODEOWNERS.
- name: Verify CODEOWNERs and Changed Files
uses: endersonmenezes/codeowners-superpowers@main
with:
super_power: "require-all-codeowners"
gh-token: ${{ steps.app-token.outputs.token }}
pr_number: ${{ github.event.number }}
owner_and_repository: ${{ github.repository }}
- require-all-codeowners
This Superpower will check if all codeowners necessary have been approved in the PR.
Based on: this discussion
- Create a GitHub App inside your organization or repository.
- That GitHub App needs to have the following permissions:
- Read contents of repository.
- Read pull-requests of repository.
- Read members of the organization.
- Use the actions/create-github-app-token@v1 before use the GATE with Superpowers.