Make CLI build workflow usable as a PR required check#464
Merged
Conversation
Remove path filters from pull_request trigger so the workflow runs on every PR to main. Add a check-changes job using dorny/paths-filter to detect CLI-relevant file changes. The build-and-validate job is conditional on that output, so it skips cleanly when no relevant files changed — making this workflow suitable as a PR required status check. Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com> Agent-Logs-Url: https://github.com/rajbos/github-copilot-token-usage/sessions/3c397486-6198-42c5-949b-52436ad2c2eb
Copilot created this pull request from a session on behalf of
rajbos
March 22, 2026 04:18
View session
rajbos
approved these changes
Mar 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CLI build workflow only triggers on PRs that touch CLI-relevant paths, so GitHub never reports a status for unrelated PRs — making it impossible to use as a required status check.
Changes
pathsfilter frompull_requesttrigger so the workflow runs on every PR tomaincheck-changesjob usingdorny/paths-filter(SHA-pinned) to detect CLI-relevant file changesbuild-and-validateoncheck-changesoutput — skips cleanly when no relevant files changed, completing the workflow as greenpushtrigger unchanged — still path-filtered since it doesn't need to serve as a required checkThe
check-changesoutput auto-resolves totrueforpushevents (already path-filtered by the trigger) and delegates todorny/paths-filterforpull_requestevents:Once merged,
build-and-validatecan be added as a required status check onmain.