Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Automatic pull request review

Actions
👍 Github action to automate pull requests
0.0.2
Star (25)

Automatic Pull Request Review

👍 Github action to automate pull requests

This action allows you to use any of the pull_request webhook event to automate pull request reviews. For example when a pull request is opened by dependabot automatically prove it.

Usage

  1. Create a new workflow by adding .github/workflows/pull-request-automation.yml to your project.
  2. In the pull-request-automation.yml you have to decide which events you'll act on and the actors pull requests to automate.

For example:

To approve all pull requests pull requests from dependabot, you would add the following to the yml file:

name: Automatic pull request review
on: [pull_request]
jobs:
  automate-pullrequest-review:
    runs-on: ubuntu-latest
    steps:
      - name: Approve pull request
        if: github.actor == 'dependabot'
        uses: andrewmusgrave/[email protected]
        with:
          repo-token: '${{ secrets.GITHUB_TOKEN }}'
          event: APPROVE
          body: 'Thank you dependabot 🎊'

Workflow options

These are the options recommended to be changed. For more detailed explanation of the workflow file, check out the GitHub documentation.

Setting Description Values
event The event to perform on the pull request review. APPROVE | COMMENT | DISMISS | REQUEST_CHANGES
body The contents of the review body comment. Required when event is COMMENT or REQUEST_CHANGES String
repo-token The personal access token ${{ secrets.GITHUB_TOKEN }}

Automatic pull request review is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

👍 Github action to automate pull requests
0.0.2

Automatic pull request review is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.