Skip to content

Conversation

@dmcilvaney
Copy link
Contributor

The simple spec review check can only safely run from non-fork PRs. This approach allows the check to run on all PRs.
It requires checking the stub yml into the default repo branch so that the workflow can trigger, but the rest of the workflow remains in the toml branch.

@dmcilvaney dmcilvaney changed the title ci: Support PRs from forks for the spec review agent by using a pull_request_target workflow with a reusable workflow template. ci(pr): Support PRs from forks for the spec review agent by using a pull_request_target workflow with a reusable workflow template. Feb 9, 2026
@dmcilvaney dmcilvaney force-pushed the damcilva/spec_agent_template branch 7 times, most recently from 8800a9f to e2f4fcb Compare February 9, 2026 22:53
@dmcilvaney dmcilvaney marked this pull request as ready for review February 9, 2026 23:12
Copilot AI review requested due to automatic review settings February 9, 2026 23:12
…ull_request_target workflow with a reusable workflow template.
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 updates the spec review GitHub Actions setup to safely support pull requests from forks by switching to a pull_request_target stub workflow on the default branch that delegates work to a reusable workflow on tomls/base/main.

Changes:

  • Convert spec-review.yml into a reusable workflow_call workflow and keep workflow_dispatch for manual runs.
  • Add a pull_request_target stub workflow that calls the reusable workflow with PR metadata.
  • Implement sparse checkout + overlay of only **/*.spec files from the PR head repository/commit.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/spec-review.yml Refactored into a reusable workflow; adds sparse checkout/overlay for PR head .spec files and updates PR-comment logic to use passed inputs.
.github/workflows/spec-review-stub.yml New pull_request_target stub on default branch to invoke the reusable workflow with secrets available for fork PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant