Skip to content

Fix PR Actions Detective trigger to watch actual CI workflow names#592

Merged
strawgate merged 3 commits intomainfrom
copilot/fix-pr-actions-detective-trigger
Mar 7, 2026
Merged

Fix PR Actions Detective trigger to watch actual CI workflow names#592
strawgate merged 3 commits intomainfrom
copilot/fix-pr-actions-detective-trigger

Conversation

Copy link
Contributor

Copilot AI commented Mar 7, 2026

Trigger PR Actions Detective was not firing for this repository's CI runs because it only watched CI, Build, and Test, while the actual workflow names are Internal: CI and Internal: Tests.

What changed

  • Updated watched workflow names in gh-agent-workflows/pr-actions-detective/example.yml to include Internal: CI and Internal: Tests, while keeping the existing entries.
  • Regenerated .github/workflows/trigger-pr-actions-detective.yml via scripts/dogfood.sh so the generated workflow reflects the same trigger list.
# before
workflows: ["CI", "Build", "Test"]
# after
workflows: ["Internal: CI", "Internal: Tests", "CI", "Build", "Test"]

Fixes #572


The body of this PR is automatically managed by the Trigger Update PR Body workflow.

…ched workflows

The trigger was configured to watch for workflows named CI, Build, and Test,
but this repo's actual CI workflows are named Internal: CI and Internal: Tests.
This matches the pattern already used in branch-actions-detective/example.yml.

Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix PR Actions Detective to watch correct workflow names Fix PR Actions Detective trigger to watch actual CI workflow names Mar 7, 2026
@strawgate strawgate marked this pull request as ready for review March 7, 2026 23:02
@coderabbitai
Copy link

coderabbitai bot commented Mar 7, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b443f2b3-8ad9-4434-b7d5-ea5a84584269

📥 Commits

Reviewing files that changed from the base of the PR and between 7b41588 and 967192c.

📒 Files selected for processing (2)
  • .github/workflows/trigger-pr-actions-detective.yml
  • gh-agent-workflows/pr-actions-detective/example.yml

📝 Walkthrough

Walkthrough

The PR updates workflow trigger configurations in two files to include "Internal: CI" and "Internal: Tests" in the workflow_run.workflows list. Previously, the trigger watched for "CI", "Build", and "Test", which did not correspond to any actual workflow names in the repository. This fix enables the PR Actions Detective workflow to properly trigger when the actual internal CI workflows complete.

Possibly related PRs

  • PR 490: Updates workflow names in triggering and dispatching scripts to match the internal workflow naming convention.
  • PR 348: Renamed workflows to include the "Internal:" prefix (e.g., "CI" → "Internal: CI"), establishing the actual workflow names that this PR now references.
  • PR 372: Updates workflow_run trigger lists to include internal workflow names, addressing similar trigger mismatches.
🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The PR successfully adds 'Internal: CI' and 'Internal: Tests' to the watched workflows, directly addressing issue #572's requirement for non-empty overlap between trigger and actual workflow names.
Out of Scope Changes check ✅ Passed All changes are scoped to updating the trigger workflow configuration files to match repository's actual CI workflow names, with no extraneous modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch copilot/fix-pr-actions-detective-trigger
  • 🛠️ Update Documentation: Commit on current branch
  • 🛠️ Update Documentation: Create PR

Comment @coderabbitai help to get the list of available commands and usage tips.

@strawgate strawgate merged commit b2ec879 into main Mar 7, 2026
16 checks passed
@strawgate strawgate deleted the copilot/fix-pr-actions-detective-trigger branch March 7, 2026 23:04
@github-actions github-actions bot added the medium_boom Medium PR blast radius; likely benefits from human review label Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

medium_boom Medium PR blast radius; likely benefits from human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug-hunter] PR Actions Detective trigger watches non-existent workflow names, so it never runs

2 participants