Skip to content

Add @bot coverage comment trigger to coverage workflow#325

Merged
greenc-FNAL merged 2 commits intomainfrom
copilot/enhance-coverage-workflow
Feb 20, 2026
Merged

Add @bot coverage comment trigger to coverage workflow#325
greenc-FNAL merged 2 commits intomainfrom
copilot/enhance-coverage-workflow

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Enable coverage workflow invocation via @phlexbot coverage comment on PRs, bypassing relevance detection.

Changes

  • Added issue_comment trigger: Workflow responds to PR comments matching @{repo}bot coverage pattern
  • Authorization check: Restricted to OWNER/COLLABORATOR/MEMBER via github.event.comment.author_association check
  • PR context retrieval: Integrated get-pr-info action to extract ref/repo/base_sha when comment-triggered
  • Bypass relevance detection: Skip detect-changes job for issue_comment events (same behavior as workflow_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.

Copilot AI changed the title [WIP] Add coverage workflow invocation with @Xbot comment Add @bot coverage comment trigger to coverage workflow Feb 14, 2026
Copilot AI requested a review from greenc-FNAL February 14, 2026 00:07
@greenc-FNAL greenc-FNAL marked this pull request as ready for review February 14, 2026 00:13
Copilot AI review requested due to automatic review settings February 14, 2026 00:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_comment event 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)

Copilot AI and others added 2 commits February 16, 2026 09:39
Co-authored-by: greenc-FNAL <2372949+greenc-FNAL@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@greenc-FNAL greenc-FNAL force-pushed the copilot/enhance-coverage-workflow branch from 7872b73 to 3700202 Compare February 16, 2026 15:39
@greenc-FNAL greenc-FNAL merged commit a26780a into main Feb 20, 2026
47 checks passed
@knoepfel knoepfel deleted the copilot/enhance-coverage-workflow branch February 24, 2026 20:58
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.

4 participants