Skip to content

ci: run the test job on pull_request, not just push-to-main - #37

Merged
asachs01 merged 1 commit into
mainfrom
ci/gate-prs-on-test
Aug 13, 2026
Merged

ci: run the test job on pull_request, not just push-to-main#37
asachs01 merged 1 commit into
mainfrom
ci/gate-prs-on-test

Conversation

@asachs01

@asachs01 asachs01 commented Aug 13, 2026

Copy link
Copy Markdown
Member

Surfaced during the 2026-08-06 boss-authorized batch-merge (task_1786020006187): this repo's Release workflow only triggers on push to main, so PRs merge with zero CI signal — gh run list --branch <PR-branch> returns nothing, and mergeStateStatus: CLEAN just means no required check exists, not that anything passed.

Adds a pull_request trigger alongside the existing push trigger. The existing test job (lint/build/test, Node 20+22 matrix) now gates PRs too. The release job's if: github.ref == 'refs/heads/main' guard already prevents it from running on pull_request events, so this only adds test coverage — no change to the release path.

Mirrors the pattern sibling repos already use (e.g. node-connectwise-automate, node-syncro).


View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

Release workflow only triggered on push, so PRs merged with no CI
signal at all (mergeStateStatus read CLEAN, which just meant no
required check existed). Adds a pull_request trigger alongside the
existing push trigger so the same test job gates PRs too. The
release job's existing 'if: github.ref == refs/heads/main' guard
already prevents it from running on pull_request events.
@asachs01
asachs01 merged commit 59e260a into main Aug 13, 2026
4 checks passed
@asachs01
asachs01 deleted the ci/gate-prs-on-test branch August 13, 2026 02:13
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.

1 participant