Skip to content
Discussion options

You must be logged in to vote

Great question! Here is a minimal GitHub Actions workflow:

# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npx scantodo --types FIXME

The key is --types FIXME — this tells scantodo to only scan for FIXME comments and ignore TODO, HACK, NOTE, and XXX. Since scantodo exits with code 1 when it finds matches, the workflow step will fail automatically.

If you ever need to run it in reporting mode without failing CI, add the --no-fail flag.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imxde-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant