Skip to content

Repository files navigation

Your all-in-one ruby Pronto runner.

This is a reduced-scope fork of (AdWerx/pronto-ruby)[https://github.com/AdWerx/pronto-ruby], it only focus on Ruby, removing all of npm-related lints.

This GitHub Action runs Prontorunners 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
  • fasterer
  • flay
  • rails_best_practices
  • rails_schema
  • reek
  • rubocop
  • stylelint

Inputs

namedescriptiondefault
runnersSpace-separated list of pronto runners to run. Must be the preinstalled runners from the list above.rubocop
targetThe 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: apptweak/pronto-rubyenv:
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: Prontoon:
- push
- pull_requestjobs:
run:
permissions:
checks: writecontents: readruns-on: ubuntu-lateststeps:
- uses: actions/checkout@v4with:
ref: ${{ github.event.pull_request.head.sha }} # checkout HEAD commit instead of merge commitfetch-depth: 50# If your repository has long-living PRs, this might need to be higher
- run: git fetch origin main
- uses: apptweak/pronto-ruby@use_head_commitenv:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:
target: origin/main

With specific runners:

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

Development / Contributions

See CONTRIBUTING.md

About

A GitHub Action for running Pronto code review automation

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages