Keep required CI and CodeQL checks green while skipping heavy work for Markdown-only pull requests#1896
Merged
pmcelhaney merged 8 commits intomainfrom Apr 16, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Skip CI checks when only Markdown files have changed
Skip CI and CodeQL for Markdown-only pull requests
Apr 16, 2026
pmcelhaney
requested changes
Apr 16, 2026
Collaborator
pmcelhaney
left a comment
There was a problem hiding this comment.
The CI checks are required for merge. The actions should pass rather than skip.
Agent-Logs-Url: https://github.com/counterfact/api-simulator/sessions/d21dbaec-ed30-427b-a4e9-b1a246aa5257 Co-authored-by: pmcelhaney <51504+pmcelhaney@users.noreply.github.com>
Agent-Logs-Url: https://github.com/counterfact/api-simulator/sessions/d21dbaec-ed30-427b-a4e9-b1a246aa5257 Co-authored-by: pmcelhaney <51504+pmcelhaney@users.noreply.github.com>
Agent-Logs-Url: https://github.com/counterfact/api-simulator/sessions/d21dbaec-ed30-427b-a4e9-b1a246aa5257 Co-authored-by: pmcelhaney <51504+pmcelhaney@users.noreply.github.com>
Agent-Logs-Url: https://github.com/counterfact/api-simulator/sessions/d21dbaec-ed30-427b-a4e9-b1a246aa5257 Co-authored-by: pmcelhaney <51504+pmcelhaney@users.noreply.github.com>
Agent-Logs-Url: https://github.com/counterfact/api-simulator/sessions/d21dbaec-ed30-427b-a4e9-b1a246aa5257 Co-authored-by: pmcelhaney <51504+pmcelhaney@users.noreply.github.com>
Contributor
Author
Updated so required checks no longer get skipped at the workflow trigger level. CI and CodeQL now always run on PRs, detect docs-only changes, and short-circuit heavy steps while returning successful required checks. Addressed in commit |
Copilot
AI
changed the title
Skip CI and CodeQL for Markdown-only pull requests
Keep required CI and CodeQL checks green while skipping heavy work for Markdown-only pull requests
Apr 16, 2026
pmcelhaney
approved these changes
Apr 16, 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.
Summary
This PR now keeps required checks running (and passing) on every pull request, including docs-only PRs.
Instead of skipping entire workflows at the trigger level, CI and CodeQL now:
actions/github-script),This preserves merge-required check behavior while still reducing unnecessary work for docs-only changes.
Original Prompt
Issue title: Skip CI checks when only Markdown files have changed
Issue description:
When the only changes are in Markdown files, most GitHub actions don't need to do anything. Only the ones that specifically deal with Markdown need to execute.
Skip steps like running unit tests when none of the files that would be tested have changed.
Manual acceptance tests
Tasks
.github/workflows/ci.yaml..github/workflows/codeql.yml.