Skip to content

Auto-assign on fork PRs via pull_request_target - #84

Merged
bharvey88 merged 19 commits into
betafrom
fix/autoassign-fork-prs
Jul 14, 2026
Merged

Auto-assign on fork PRs via pull_request_target#84
bharvey88 merged 19 commits into
betafrom
fix/autoassign-fork-prs

Conversation

@bharvey88

Copy link
Copy Markdown
Contributor

Make auto-assign run on PRs opened from forks.

Currently autoassign.yml triggers on pull_request and skips forks (if: ... head.repo.full_name == github.repository), because fork pull_request runs only get a read-only GITHUB_TOKEN. This switches the trigger to pull_request_target and removes the fork-skip guard, so fork PRs get auto-assigned to bharvey88.

pull_request_target runs in the base-repo context with a write token. Safe here because this workflow never checks out or executes PR code — it only assigns.

Stacked on #83 (Sync main into beta): this builds on the consolidated reusable-workflow version. Merge #83 first; the diff here will then reduce to just the autoassign change.

🤖 Generated with Claude Code

bharvey88 and others added 19 commits December 18, 2025 15:21
…andon

Change assignee from TrevorSchirmer to bharvey88
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4.2.2 to 5.0.0
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4.2.2...v5.0.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
…s/github-actions-ee1c097272

chore(ci): bump actions/checkout from 4.2.2 to 5.0.0 in the github-actions group
Release 26.3.2.1 - New sensors, ESPHome modernisation, and bug fixes
Bumps the github-actions group with 1 update: [pozil/auto-assign-issue](https://github.com/pozil/auto-assign-issue).


Updates `pozil/auto-assign-issue` from 2 to 3
- [Release notes](https://github.com/pozil/auto-assign-issue/releases)
- [Commits](pozil/auto-assign-issue@v2...v3)

---
updated-dependencies:
- dependency-name: pozil/auto-assign-issue
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
…s/github-actions-3fa3f09d17

chore(ci): bump pozil/auto-assign-issue from 2 to 3 in the github-actions group
Bumps the github-actions group with 2 updates: [pozil/auto-assign-issue](https://github.com/pozil/auto-assign-issue) and [actions/checkout](https://github.com/actions/checkout).


Updates `pozil/auto-assign-issue` from 3 to 4
- [Release notes](https://github.com/pozil/auto-assign-issue/releases)
- [Commits](pozil/auto-assign-issue@v3...v4)

Updates `actions/checkout` from 6.0.2 to 6.0.3
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v6.0.2...v6.0.3)

---
updated-dependencies:
- dependency-name: pozil/auto-assign-issue
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/checkout
  dependency-version: 6.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
…s/github-actions-346f710312

chore(ci): bump the github-actions group with 2 updates
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 6.0.3 to 7.0.0
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v6.0.3...v7.0.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
…s/github-actions-2217aebe03

chore(ci): bump actions/checkout from 6.0.3 to 7.0.0 in the github-actions group
Replaces inline version-pinned actions with thin callers of
ApolloAutomation/Workflows reusable workflows referenced @main. Leaf
repo now contains zero dependabot-bumpable refs; action version pins
are centralized in the Workflows repo. Dependabot schedule relaxed to
monthly as a safety net.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Consolidate workflows into shared ApolloAutomation/Workflows reusable workflows
Resolve workflow conflicts by taking main's consolidated reusable
workflows (ci.yml, autoassign.yml) from #78. Brings in the MSR-2
datasheet, standardized PR template, and dependabot updates.
Switch the auto-assign trigger from pull_request to
pull_request_target and drop the fork-skip guard, so PRs opened
from forks get auto-assigned. Fork pull_request runs only receive a
read-only GITHUB_TOKEN, which is why assignment was skipped for
them. pull_request_target runs in the base-repo context with a
write token; safe here because the workflow never checks out or
executes PR code.
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@bharvey88, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 48 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 93c7d53b-d92e-4a56-8e7d-63ea7ed1b765

📥 Commits

Reviewing files that changed from the base of the PR and between 67a6778 and 24fa68f.

⛔ Files ignored due to path filters (1)
  • Datasheets/MSR-2_Datasheet.pdf is excluded by !**/*.pdf
📒 Files selected for processing (5)
  • .github/dependabot.yml
  • .github/workflows/autoassign.yml
  • .github/workflows/ci.yml
  • .github/workflows/weekly.yml
  • PULL_REQUEST_TEMPLATE.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/autoassign-fork-prs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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.

2 participants