[PR #8071] [MERGED] fix(ci): keep a PR description edit from cancelling the push's Dottore dispatch #8087

Closed
opened 2026-10-24 04:10:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8071
Author: @Promansis
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @Promansis

Base: staging ← Head: fix(ci)/8068-dottore-edit-cancel


📝 Commits (1)

  • df0c391 fix(ci): keep a PR description edit from cancelling the push's Dottore dispatch

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 .github/workflows/dottore-review-auto.yml (+3 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #8068

Why this change

  • Editing a PR's title or description right after a push could cancel that push's Dottore auto dispatch. The edit's own run then skipped ("metadata edit"), so the new head never got a Dottore Review status and the PR stayed blocked until someone commented /dottore. On #8057 this held a green PR for about 50 minutes.
  • Agents patch the PR body right after pushing, so this happens routinely.
  • The same thing could happen with DOTTORE_AUTO_REVIEW off. There an edit run's job is skipped, but the run still joined the PR's concurrency group, so it could cancel the dispatch for a Dottore repair push.

What changed

  • .github/workflows/dottore-review-auto.yml: an edited event with no base change now gets its own concurrency group. Every other event keeps the PR's shared group, so pushes and base changes still cancel each other's dispatches as before.
 concurrency:
-  group: dottore-review-auto-dispatch-<pr>
+  group: dottore-review-auto-dispatch-<pr>
+         + ("-edit-<run_id>" if action == edited and no base change)
   cancel-in-progress: true

The check matches the step's existing skip (changes.base.ref.from is empty), so a run gets its own group only when it would skip anyway.

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

Run locally on df0c391f2:

  • actionlint 1.7.7 on the workflow passes, before and after the change. The expression is valid in a workflow-level concurrency block.

  • act 0.2.74 evaluated the exact group: line from this branch for five test events (run ID 39759497444):

    Event Group before Group after
    synchronize (push) …-8057 …-8057
    opened …-8057 …-8057
    edited, description …-8057 (cancels the push's run) …-8057-edit-39759497444
    edited, title …-8057 (cancels the push's run) …-8057-edit-39759497444
    edited, base change …-8057 …-8057
  • pnpm check was not run: none of its steps read .github/workflows. Prettier only checks packages/**/*.{ts,tsx}, and lint runs per package.

  • git diff --check is clean.

act only evaluates the group name; it doesn't do the cancelling. The workflow runs on pull_request_target, so this PR's own runs still use the copy on staging, and the fix can only be checked live after it merges.

Manual verification notes

  • After merge, push a commit to a ready PR into staging, then edit its description within a second or two. Manually verify that both Dottore Review Auto Dispatch runs complete (neither is cancelled), that the push's run dispatches Dottore Review, and that the head gets a Dottore Review status.
  • Manually verify that two quick pushes still cancel the first push's dispatch run.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No docs change: .github/dottore-review/README.md describes what the dispatcher does, not how its runs are grouped.

Merge Danger

Door: two-way. It's a one-line CI change that a revert fully undoes.

Blast radius: dispatcher runs only. If the expression misbehaved, the worst case is that a run no longer replaces the one before it, so a PR gets an extra dispatch. The review workflow, its status and every other check are unchanged.

UI evidence (if applicable)

Not applicable (CI only).

🤖 Generated with Claude Code


🔄 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/8071 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(ci)/8068-dottore-edit-cancel` --- ### 📝 Commits (1) - [`df0c391`](https://github.com/Pasta-Devs/Marinara-Engine/commit/df0c391f2a92d7252de149dd3d58a9f833909046) fix(ci): keep a PR description edit from cancelling the push's Dottore dispatch ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dottore-review-auto.yml` (+3 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #8068 ## Why this change - Editing a PR's title or description right after a push could cancel that push's Dottore auto dispatch. The edit's own run then skipped ("metadata edit"), so the new head never got a `Dottore Review` status and the PR stayed blocked until someone commented `/dottore`. On #8057 this held a green PR for about 50 minutes. - Agents patch the PR body right after pushing, so this happens routinely. - The same thing could happen with `DOTTORE_AUTO_REVIEW` off. There an edit run's job is skipped, but the run still joined the PR's concurrency group, so it could cancel the dispatch for a Dottore repair push. ## What changed - `.github/workflows/dottore-review-auto.yml`: an `edited` event with no base change now gets its own concurrency group. Every other event keeps the PR's shared group, so pushes and base changes still cancel each other's dispatches as before. ```diff concurrency: - group: dottore-review-auto-dispatch-<pr> + group: dottore-review-auto-dispatch-<pr> + + ("-edit-<run_id>" if action == edited and no base change) cancel-in-progress: true ``` The check matches the step's existing skip (`changes.base.ref.from` is empty), so a run gets its own group only when it would skip anyway. ## 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` Run locally on `df0c391f2`: - `actionlint 1.7.7` on the workflow passes, before and after the change. The expression is valid in a workflow-level `concurrency` block. - `act 0.2.74` evaluated the exact `group:` line from this branch for five test events (run ID 39759497444): | Event | Group before | Group after | | --- | --- | --- | | `synchronize` (push) | `…-8057` | `…-8057` | | `opened` | `…-8057` | `…-8057` | | `edited`, description | `…-8057` (cancels the push's run) | `…-8057-edit-39759497444` | | `edited`, title | `…-8057` (cancels the push's run) | `…-8057-edit-39759497444` | | `edited`, base change | `…-8057` | `…-8057` | - `pnpm check` was not run: none of its steps read `.github/workflows`. Prettier only checks `packages/**/*.{ts,tsx}`, and lint runs per package. - `git diff --check` is clean. act only evaluates the group name; it doesn't do the cancelling. The workflow runs on `pull_request_target`, so this PR's own runs still use the copy on `staging`, and the fix can only be checked live after it merges. ### Manual verification notes - After merge, push a commit to a ready PR into `staging`, then edit its description within a second or two. Manually verify that both Dottore Review Auto Dispatch runs complete (neither is cancelled), that the push's run dispatches Dottore Review, and that the head gets a `Dottore Review` status. - Manually verify that two quick pushes still cancel the first push's dispatch run. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No docs change: `.github/dottore-review/README.md` describes what the dispatcher does, not how its runs are grouped. ## Merge Danger **Door:** two-way. It's a one-line CI change that a revert fully undoes. **Blast radius:** dispatcher runs only. If the expression misbehaved, the worst case is that a run no longer replaces the one before it, so a PR gets an extra dispatch. The review workflow, its status and every other check are unchanged. ## UI evidence (if applicable) Not applicable (CI only). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:16 +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#8087
No description provided.