GitHub Action
Alex Recommends
Uses alex to check language and post a comment on the pull request with the recommendations.
Required {{ secrets.GITHUB_TOKEN }}
Optional a string identifier to add as a comment on the message. Only one message with a given message_id
will be posted to a PR. If you are using this action multiple times within a workflow, it is recommended to customize the message_id
. Default is "Default"
.
Optional Alex noBinary configuration option - if false items like he or she
will not be corrected to they
[default: true]
Optional Alex profanitySureness configuration option - 0=unlikely, 1=maybe, 2=likely [default: 1]
Optional A glob pattern to filter files for [default: "*"]
Optional Only evaluate files that were changed in this Pull Request [default: true]
None
This workflow runs when a PR is made. It then comments with the results of alex
or updates a past comment, if available (based on message_id
).
name: Alex Recommends
on: pull_request_target
jobs:
alex:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Comment on new PR
uses: brown-ccv/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message_id: 'alex'
no_binary: false
profanity_sureness: 2
pr_only: false
glob_pattern: "services/**"