Skip to content

endersonmenezes/codeowners-superpowers

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codeowners-superpowers

A GitHub Action that powers the CODEOWNERS.

Example

  - 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 }}

Available Super Powers

  • require-all-codeowners

require-all-codeowners

This Superpower will check if all codeowners necessary have been approved in the PR.

Based on: this discussion

Requirements for this Superpower

  1. Create a GitHub App inside your organization or repository.
  2. That GitHub App needs to have the following permissions:
    • Read contents of repository.
    • Read pull-requests of repository.
    • Read members of the organization.
  3. Use the actions/create-github-app-token@v1 before use the GATE with Superpowers.