Skip to content

cuichenli/enforce-codeowner

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

Repository files navigation

Enforce Codeowner

This action is to enforce codeowner for PR.

Inputs

CODEOWNERS_PATH

The path to the CODEOWNERS file in this repository. The default value is .github/CODEOWNERS

POST_COMMENT

Specify the value to be true if you want the github action to automatically post a comment to the associated PR when the changed files do not have code owner. The default value is true.

Environment Variable

The only env variable required is the token for the action to run: GitHub generates one automatically, but you need to pass it through env to make it available to actions. You can find more about GITHUB_TOKEN here.

Example usage

uses: cuichenli/enforce-codeowner@
with:
  CODEWONERS_PATH: '.github/CODEOWNERS'
  POST_COMMENT: true
env:
  GITHUB_TOKEN: '{{ secrets.GITHUB_TOKEN }}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published