ci: skip docs validation for dependabot PRs#391
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the docs validation workflow to avoid running docs checks for Dependabot-authored pull requests, keeping required checks green while reducing CI work.
Changes:
- Add a Dependabot PR detection step that sets an
is_dependabotoutput. - Skip checkout and docs change detection when the PR is identified as Dependabot.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (2)
.github/workflows/docs-ci.yaml:62
- The condition at line 62 will fail for workflow_dispatch and workflow_call events because github.event.pull_request will be null/undefined in those contexts. This step needs to check github.event_name first to avoid evaluation errors. The condition should be: github.event_name != 'pull_request' || github.event.pull_request.user.login != 'dependabot[bot]'
- 'docs/**'
.github/workflows/docs-ci.yaml:39
- The new dependabot skip message step will run but then the workflow stops at line 41 because no checkout occurs for dependabot PRs. This means the job succeeds early. However, consider whether this is the intended behavior or if you want to explicitly exit with success. The current implementation relies on subsequent steps being skipped, which works but may not be immediately clear. Consider adding a comment explaining this flow or using a job-level condition instead.
- name: Checkout source code (PR)
if: github.event_name == 'pull_request'
uses: actions/checkout@v6
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bwmx
approved these changes
Feb 18, 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.
No description provided.