Skip to content
command

GitHub Action

CODEOWNERs Superpowers!

v1.2.0 Latest version

CODEOWNERs Superpowers!

command

CODEOWNERs Superpowers!

A simple way to turn your CODEOWNERs into superpowers

Installation

Copy and paste the following snippet into your .yml file.

              

- name: CODEOWNERs Superpowers!

uses: endersonmenezes/codeowners-superpowers@v1.2.0

Learn more about this action in endersonmenezes/codeowners-superpowers

Choose a version

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.