Skip to content

Pronto Ruby by Chargify

Actions
Your all-in-one Pronto ruby code review automation. Forked by Chargify to leverage newest rubocop
v1.1
Latest
Star (0)

This is fork of a pronto-ruby

The main reason being that as of May 2020 the original pronto-ruby action is no longer maintained and Chargify requires rubocop in ~> 0.80 version. This action might not work as intended, use with caution.

Original readme

Your all-in-one ruby Pronto runner.

This GitHub Action runs Pronto runners on your Ruby project diffs and reports back with a GitHub Check Run.

check runs

annotations

Runners

The docker image of this Action includes the following Pronto Runners:

  • brakeman
  • bundler_audit
  • eslint_npm
  • fasterer
  • flay
  • poper
  • rails_best_practices
  • rails_schema
  • rails_data_schema
  • reek
  • rubocop
  • scss
  • yamllint

Inputs

name description default
runners Space-separated list of pronto runners to run. Must be the preinstalled runners from the list above. rubocop
target The git target pronto will diff against (-c) origin/master

Secrets

A GitHub token is available by default when using actions, but you must include it in the env map for this Action to use when creating a check run.

Be sure to include the ENV variable in your job step:

    - uses: adwerx/pronto-ruby
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

That's it!

Configuration

Pronto can be configured via the .pronto.yml configuration file in your repo.

Example

With the defaults (only rubocop):

name: Pronto

on:
  - push
  - pull_request

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: adwerx/[email protected]
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

With specific runners:

name: Pronto
# ...
      with:
        runners: >-
          rubocop rails_schema yamllint

If you want to use actions/checkout@v2:

name: Pronto
# ...
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - run: |
        git fetch --no-tags --prune origin

Development / Contributions

See CONTRIBUTING.md

Pronto Ruby by Chargify 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

Your all-in-one Pronto ruby code review automation. Forked by Chargify to leverage newest rubocop
v1.1
Latest

Pronto Ruby by Chargify 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.