Coder Social home page Coder Social logo

thedevsaddam / action Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 9.0 77 KB

GitHub action to supercharge your pull requests workflows!

Home Page: https://docs.reviewpad.com

License: GNU Lesser General Public License v3.0

Shell 5.20% Go 75.77% Dockerfile 19.03%

action's Introduction

Reviewpad GitHub Action

Latest Stable Version: v2.x (Lisbon Edition)

For questions, check out the discussions.

For documentation, check out this document and the official documentation.

If you think Reviewpad is or could be useful for you, join our community on Discord.


This action runs the docker image reviewpad/action.

The docker image is automatically pushed to Docker Hub on every commit to the main branch.

It reads and automates the pull request workflows specified in the reviewpad.yml file at the root of your GitHub repository.

These workflows can be used to automatically label, assign reviewers, comment, merge and close pull requests.

For example, the following reviewpad.yml file:

api-version: reviewpad.com/v2.x

rules:
  - name: is-small
    kind: patch
    description: small pull request
    spec: '$size() <= 50'

  - name: is-medium
    kind: patch
    description: medium-sized pull request
    spec: '$size() > 50 && $size() <= 150'

  - rule: is-large
    kind: patch
    description: large-sized pull request
    spec: '$size() > 150'

workflows:
  - name: label-pull-request-with-size
    description: Label pull request with size
    if:
      - rule: is-small
        extra-actions:
          - $addLabel("small")
      - rule: is-medium
        extra-actions:
          - $addLabel("medium")
      - rule: is-large
        extra-actions:
          - $addLabel("large")

Specifies a workflow to automatically add a label based on the size of the pull request.

For more information on the release procedure, check the RELEASE.md document.

Inputs

  • repository: Uses default ${{ github.repository }}
  • prnumber: Uses default ${{ github.event.pull_request.number }}
  • token: Uses default ${{ github.token }}

Outputs

None.

Usage examples

This action should only be used on pull_request related events.

Add the following step to a GitHub Action job:

- name: Run reviewpad action
  uses: reviewpad/[email protected]

By default this action uses the github-actions[bot] PAT.

As described in the official GitHub documentation:

When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN will not create a new workflow run.

If you want to use more advanced features such as the auto-merge feature, we recommend that you explicitly pass a PAT to run this action:

- name: Run reviewpad action
  uses: reviewpad/[email protected]
  with:
    token: ${{ secrets.GH_TOKEN }}

Please follow this link to know more.

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.