A Github action to run pronto.
Big thanks to HeRoMo for building the awesome action! This action is modified from HeRoMo/pronto-action project.
This action support the following pronto runners.
Create Github workflow definition yaml file in .github/workflows directory of your repository.
This action can be configured by the following input parameters.
name | require | default | description |
---|---|---|---|
github_token | false | ${{ github.token }} | default value is setted by github workflow automatically. |
commit | false | origin/${{ github.base_ref }} |
Commit for the diff. ( origin/main , if base of pullrequest is main ) |
runner | false | standardrb brakeman |
Run only the passed runners. |
formatters | false | github_status github_pr_review |
Pick output formatters. |
path | false | '.' |
Relative path to check. |
see Pronto usage.
The followoing yaml is a simplest workflow difinition of using pronto-action.
name: Pronto
on:
pull_request:
types: [opened, synchronize]
jobs:
pronto:
runs-on: ubuntu-latest
permissions:
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Ruby 3
- uses: easyship/pronto-action@v3
When Read repository contents permission in Settings/Actions of the repository is setted, you have to add permissions
to the Github workflow difinition YAML.
The following permissions are required.
- pull-requests: write
- statuses: write
The followoing yaml is a workflow difinition of pronto-action with permissions.
name: Pronto
on:
pull_request:
types: [opened, synchronize]
jobs:
pronto:
runs-on: ubuntu-latest
permissions:
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: easyship/pronto-action@v3