Add @bot coverage comment trigger to coverage workflow#325
Merged
greenc-FNAL merged 2 commits intomainfrom Feb 20, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add coverage workflow invocation with @Xbot comment
Add @bot coverage comment trigger to coverage workflow
Feb 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds the ability to trigger the coverage workflow via @phlexbot coverage comment on pull requests, following the established bot command pattern used in other workflows like cmake-build and python-fix.
Changes:
- Added
issue_commentevent trigger with authorization check restricting to OWNER/COLLABORATOR/MEMBER - Integrated get-pr-info action to extract PR context (ref, repo, base_sha) when comment-triggered
- Modified detect-changes job to skip for issue_comment events (same as workflow_dispatch)
knoepfel
reviewed
Feb 16, 2026
Co-authored-by: greenc-FNAL <2372949+greenc-FNAL@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
7872b73 to
3700202
Compare
knoepfel
approved these changes
Feb 20, 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.
Enable coverage workflow invocation via
@phlexbot coveragecomment on PRs, bypassing relevance detection.Changes
issue_commenttrigger: Workflow responds to PR comments matching@{repo}bot coveragepatterngithub.event.comment.author_associationcheckget-pr-infoaction to extract ref/repo/base_sha when comment-triggereddetect-changesjob forissue_commentevents (same behavior asworkflow_dispatch)Pattern
Follows the established pattern from
cmake-build.yaml,python-fix.yaml, and other bot-triggered workflows.Security
CodeQL TOCTOU alerts are expected—workflow executes code from PR head after authorization check. This is the intentional security model for bot-triggered workflows (same as existing build/fix workflows).
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.