Skip to content

dvirdung/github-action-add-reviewers

 
 

Repository files navigation

Add Reviewers

Tests

Github action that adds individual Reviewers or Team Reviewers to the Pull Request, forked from https://github.com/Madrapps/add-reviewers.

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

  • token - [required] Github personal token to add commits to Pull Request
  • reviewers - [optional] Comma separated list of reviewers [eg. john,kramer,seinfeld]
  • team_reviewers - [optional] Comma separated list of teams to review the PR [eg. team-octocat,core,dba]
  • re-request-when-changes-requested - [optional] If true, when a reviewer has requested for changes, pushing a new commit to this PR will Re-request a review from them
  • re-request-when-approved - [optional] If true, when a reviewer has approved, pushing a new commit to this PR will Re-request a review from them

Either reviewers or team_reviewers must be specified.

Example Workflow

name: Add Reviewers

on:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Add Reviewers
      uses: madrapps/add-reviewers@v1
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        reviewers: john,kramer,seinfeld
        team_reviewers: team-octocat,core,dba
        re-request-when-approved: true
        re-request-when-changes-requested: true

Example Project

For a working project refer to jacoco-playgound project. Check out the PR's in the project to get an idea on how the report is shown on a pull request comment.

License

The scripts and documentation in this project are released under the MIT License

About

Github action that add Reviewers to the Pull Request

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%