Skip to content

This action assign reviewers based on a file like CODEOWNERS.

Notifications You must be signed in to change notification settings

ohnogumi/auto-reviewers

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

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assign reviewers

This action assign reviewers based on a file like CODEOWNERS.

Usage

  1. Crete a file like CODEOWNERS.

    # .github/assign-reviewer.txt
    # This is example
    * @organization/team
    *.go @foo @bar
    *.js @baz
    
  2. Create a workflow config.

    # .github/workflows/assign-reviewer.yml
    name: 'assign reviewers'
    
    on:
      pull_request
    
    jobs:
      add-reviewer:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v1
          - uses: ohnogumi/assign-reviewers@v0.0.5
            with:
             # required
             # If you assign team for reviewer, you generate a personal access tokens with workflow scope. 
             token: "${{ secrets.GITHUB_TOKEN }}" # "${{ secrets.PERSONAL_TOKEN }}"
             
             # optional 
             # config: ".github/assign-reviewers.txt"
    

About

This action assign reviewers based on a file like CODEOWNERS.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •