Skip to content

Commit

Permalink
[CI] Check for TODO_IN_THIS_COMMIT (#60)
Browse files Browse the repository at this point in the history
* add reviewdog check

* should not have committed that

* test

* try this?

* troubleshoot

* misspell

* fail on error

* remove test

* transferred to the new repo

* add requested changes
  • Loading branch information
okdas authored Oct 19, 2023
1 parent c960efe commit ec31796
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: reviewdog

on:
pull_request:
branches: ["main"]

jobs:
# Makes sure that comments like TODO_IN_THIS_PR or TODO_IN_THIS_COMMIT block merging to main
# More info: https://github.com/pokt-network/action-fail-on-found
check_todo_in_this:
name: Check TODO_IN_THIS_
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pokt-network/action-fail-on-found@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
level: error
fail_on_error: true
pattern: TODO_IN_THIS_

# More info: https://github.com/reviewdog/action-misspell
check_misspell:
name: Check misspelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
level: warning
locale: "US"

0 comments on commit ec31796

Please sign in to comment.