Skip to content

Conversation

@caugner
Copy link
Contributor

@caugner caugner commented Jan 21, 2026

Description

Updates the pr-review-companion workflow to support PRs from forks:

  • Adds pr-build workflow which builds on: pull_request and uploads a build-output artifact.
  • Updates pr-review-companion to run on: workflow_run, identify the PR via GitHub API, and deploy the build-output artifact of the pr-build workflow run.

Motivation

Make it easier to review community PRs.

Additional details

Unfortunately, the on: workflow_run trigger only has effect on the default branch, i.e. this cannot be easily tested directly in this PR.

Related issues and pull requests

Fixes #624.

@caugner caugner requested a review from a team as a code owner January 21, 2026 09:30
@caugner caugner requested a review from LeoMcA January 21, 2026 09:30
Comment on lines +25 to +31
- name: Identify PR
id: identify-pr
run: |
PR_NUMBER=$(gh api repos/${{ github.repository }}/commits/${{ github.event.workflow_run.head_sha }}/pulls --jq '.[0].number')
echo "number=$PR_NUMBER" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ github.token }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If this works as expected, I will also use this approach in the content repo, where we currently rely on a NR file included in the artifact.

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.

PR review companion doesn't support PRs from forks

1 participant