[PR #2513] [MERGED] ci: allow Bunny Review on staging-based PRs #5631

Closed
opened 2026-10-22 04:17:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2513
Author: @Romuromylus
Created: 6/7/2026
Status: ✅ Merged
Merged: 6/7/2026
Merged by: @Romuromylus

Base: staging ← Head: fix/bunny-review-staging-base


📝 Commits (1)

  • 64a7bd3 ci: allow Bunny Review on staging-based PRs

📊 Changes

2 files changed (+4 additions, -3 deletions)

View changed files

📝 .github/workflows/bunny-review-auto.yml (+3 -2)
📝 .github/workflows/bunny-review-command.yml (+1 -1)

📄 Description

Linked issue

No issue was open for this. It is a small CI-enablement change scoped to the two Bunny dispatcher guards; happy to open one to track it if you would prefer.

Why this change

Bunny Review only dispatches for PRs based on refactor or main. A PR based on staging is rejected with Unsupported Bunny review base ref: staging by both the auto dispatcher and the /bunny-review command, so PRs targeting staging get no Bunny pass at all. Since active development happens on staging, this adds staging to the supported base refs so those PRs are reviewed like main/refactor ones.

What changed

  • .github/workflows/bunny-review-auto.yml: add staging to the dispatch job if condition and the TARGET_REF guard.
  • .github/workflows/bunny-review-command.yml: add staging to the TARGET_REF guard.

No change to bunny-review.yml (the trusted reviewer): it is dispatched with --ref $TARGET_REF, and staging already carries that workflow plus the .github/bunny-review/ tooling, so it resolves cleanly once the base ref is allowed.

Activation note (event-source asymmetry)

The two dispatchers resolve their workflow file from different branches, by GitHub's rules:

  • bunny-review-auto.yml runs on pull_request_target, which uses the workflow file from the PR base branch. Once this merges to staging, auto-dispatch works on staging PRs immediately.
  • bunny-review-command.yml runs on issue_comment, which always uses the workflow file from the default branch (main). So /bunny-review on a staging PR starts working once this change also reaches main via the normal staging-to-main flow.

I kept both edits in one change for consistency; the auto path is the one that activates on merge here.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • This is a CI-config-only change (no app code), so the app-level boxes above are not applicable.
  • It cannot be exercised end-to-end before merge: the change only takes effect from the merged base-branch copy of the workflow, and this PR is itself staging-based so Bunny will not review it until the change lands. Please give the workflow logic a maintainer eye.
  • Diff is limited to the two TARGET_REF guards plus the auto-dispatch if condition; the folded if: scalar and shell guards are otherwise unchanged.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2513 **Author:** [@Romuromylus](https://github.com/Romuromylus) **Created:** 6/7/2026 **Status:** ✅ Merged **Merged:** 6/7/2026 **Merged by:** [@Romuromylus](https://github.com/Romuromylus) **Base:** `staging` ← **Head:** `fix/bunny-review-staging-base` --- ### 📝 Commits (1) - [`64a7bd3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/64a7bd3bae729632908b88ee45f0ff0d10e3641c) ci: allow Bunny Review on staging-based PRs ### 📊 Changes **2 files changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/bunny-review-auto.yml` (+3 -2) 📝 `.github/workflows/bunny-review-command.yml` (+1 -1) </details> ### 📄 Description ## Linked issue No issue was open for this. It is a small CI-enablement change scoped to the two Bunny dispatcher guards; happy to open one to track it if you would prefer. ## Why this change Bunny Review only dispatches for PRs based on `refactor` or `main`. A PR based on `staging` is rejected with `Unsupported Bunny review base ref: staging` by both the auto dispatcher and the `/bunny-review` command, so PRs targeting `staging` get no Bunny pass at all. Since active development happens on `staging`, this adds `staging` to the supported base refs so those PRs are reviewed like `main`/`refactor` ones. ## What changed - `.github/workflows/bunny-review-auto.yml`: add `staging` to the `dispatch` job `if` condition and the `TARGET_REF` guard. - `.github/workflows/bunny-review-command.yml`: add `staging` to the `TARGET_REF` guard. No change to `bunny-review.yml` (the trusted reviewer): it is dispatched with `--ref $TARGET_REF`, and `staging` already carries that workflow plus the `.github/bunny-review/` tooling, so it resolves cleanly once the base ref is allowed. ## Activation note (event-source asymmetry) The two dispatchers resolve their workflow file from different branches, by GitHub's rules: - `bunny-review-auto.yml` runs on `pull_request_target`, which uses the workflow file from the PR **base** branch. Once this merges to `staging`, auto-dispatch works on staging PRs immediately. - `bunny-review-command.yml` runs on `issue_comment`, which always uses the workflow file from the **default** branch (`main`). So `/bunny-review` on a staging PR starts working once this change also reaches `main` via the normal staging-to-main flow. I kept both edits in one change for consistency; the auto path is the one that activates on merge here. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - This is a CI-config-only change (no app code), so the app-level boxes above are not applicable. - It cannot be exercised end-to-end before merge: the change only takes effect from the merged base-branch copy of the workflow, and this PR is itself staging-based so Bunny will not review it until the change lands. Please give the workflow logic a maintainer eye. - Diff is limited to the two `TARGET_REF` guards plus the auto-dispatch `if` condition; the folded `if:` scalar and shell guards are otherwise unchanged. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:17:59 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5631
No description provided.