
I Built a GitHub Action That Catches the 'Did You Mean to Leave That console.log?' Comment
You know that PR review comment. "Did you mean to leave this console.log ?" Or worse: "This looks like a hardcoded API key." These are the avoidable ones. The embarrassing ones. The ones that make you wish the CI had caught it before your reviewer did. I built a GitHub Action for this: Review Ready . name : Review Ready on : pull_request : branches : [ main , master ] jobs : review-ready : runs-on : ubuntu-latest steps : - uses : actions/checkout@v4 with : fetch-depth : 0 - uses : yurukusa/review-ready@v0.1.0 That's it. Add this to your repo. When someone opens a PR, it scans the changed lines and outputs inline annotations for anything suspicious. What it catches Debug statements — console.log , debugger , Python's print() , Ruby's puts , Go's fmt.Print , Rust's println! , PHP's var_dump and dd() . Only in newly-added lines, not the whole codebase. TODO/FIXME debt — TODO , FIXME , HACK , XXX , TEMP , WTF , BUG in code you just wrote. Old TODOs are fine. New ones in a PR signal incompl
Continue reading on Dev.to
Opens in a new tab


