Skip to content

🏗️🔧:lint live, and let the badge say so - #1830

Merged
openinf-commit-queue[bot] merged 1 commit into
livefrom
fix/lint-live-and-badge
Aug 18, 2026
Merged

🏗️🔧:lint live, and let the badge say so#1830
openinf-commit-queue[bot] merged 1 commit into
livefrom
fix/lint-live-and-badge

Conversation

@DerekNonGeneric

Copy link
Copy Markdown
Member

The Lint and test badge on the README was reporting a branch nobody asked
about.

lint-and-test.yml ran on pull_request only, so it has never run on live.
A workflow badge shows the default branch by default, and with no run there it
falls back to whichever branch ran most recently. That means a contributor's
failing pull request turns the badge on the front page red while live is
perfectly healthy, which is what happened.

The larger half

Nothing checked live at all. Only codeql-analysis and deploy run on push.
The commit queue squashes a pull request into live without rebuilding it, so
two changes that each passed on their own branch could land together, conflict
semantically, and nothing but the deploy would run.

Adding the push trigger fixes both: the badge starts reporting live, and
live gets verified after every landing.

What changed

  • on: pull_request becomes pull_request plus push on live
  • the Test step, which runs the full nps test, now also runs on push

The path filters stay as they are for pull requests, where checking only what
changed keeps feedback fast. On live the filters are beside the point, so the
whole suite runs whatever the change touched.

Why this will not go red spuriously

verify.commits resolves its base from GITHUB_BASE_REF, falling back to
origin/live. On a push to live there is no base ref, so it resolves
origin/live, which is HEAD. The range is empty, it checks nothing, and it
exits clean.

Unrelated, noticed while looking

semgrep.yml has push: branches: [main, master]. Neither branch exists in
this repository; live is the only one. That trigger has never fired.

@netlify

netlify Bot commented Aug 18, 2026

Copy link
Copy Markdown

Deploy Preview for gh-pages-openinf ready!

Name Link
🔨 Latest commit 3e01e73
🔍 Latest deploy log https://app.netlify.com/projects/gh-pages-openinf/deploys/6a83f6ffc1ad8e0009c45cd3
😎 Deploy Preview https://deploy-preview-1830--gh-pages-openinf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

The badge reported whichever branch ran last. A pull-request-only
workflow leaves the default branch with no status, so a contributor's
failing pull request turned the front page red while live was fine.

Nothing checked live either. The queue squashes without rebuilding, so
two changes that passed separately could land together and break
something, with only the deploy having run.

The path filters stay for pull requests. On live the whole suite runs.

Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is>
Assisted-by: Claude-Code:claude-opus-5
@DerekNonGeneric
DerekNonGeneric force-pushed the fix/lint-live-and-badge branch from bad03d7 to 3e01e73 Compare August 18, 2026 06:09
@OpenINFbot OpenINFbot added the commit-queue Land this pull request when its checks pass label Aug 18, 2026
@openinf-commit-queue
openinf-commit-queue Bot merged commit 413e599 into live Aug 18, 2026
15 checks passed
@openinf-commit-queue openinf-commit-queue Bot removed the commit-queue Land this pull request when its checks pass label Aug 18, 2026
@OpenINFbot
OpenINFbot deleted the fix/lint-live-and-badge branch August 18, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants