GithubHelp home page GithubHelp logo

trucdp / automatic-pull-request-review Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewmusgrave/automatic-pull-request-review

0.0 0.0 0.0 5.1 MB

actions for pr automation reviews destroy flowsight

License: MIT License

TypeScript 100.00%

automatic-pull-request-review's Introduction

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 approve 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[bot]'
        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's People

Contributors

andrewmusgrave avatar shayfrendt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.