Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

freetrade-io/freetrade-pr-diff-action

Repository files navigation

freetrade-pr-diff-action

Action that fails if the pull request diff contains one or more specified words.

Code in Main

Install the dependencies

$ npm install

Build the typescript and package it for distribution

$ npm run build && npm run package

Run the tests ✔️

$ npm test
...

Using this action

Please use this action only on pull_request events, it won't work anywhere else. The words array contains the words that would make the action fail if they are present in the PR changes. Do not quote/double quote the words because that would search for quoted/double quoted words (unless that's what you want to do).

name: "Check forbidden words"
on: [pull_request]

jobs:
  check_pr:
    runs-on: ubuntu-latest
    steps:
    - name: Check forbidden words
      uses: freetrade-io/freetrade-pr-diff-action@releases/v1
      with:
        github-token: ${{github.token}}
        words: |
            Cache-Control
            cache-control