[PR #978] [MERGED] ci: automate issue status labels for staging PRs #4866

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/978
Author: @cha1latte
Created: 5/18/2026
Status: ✅ Merged
Merged: 5/18/2026
Merged by: @cha1latte

Base: staging ← Head: ci/issue-status-from-prs


📝 Commits (1)

  • 2d29218 Automate issue status labels for staging PRs

📊 Changes

1 file changed (+197 additions, -0 deletions)

View changed files

➕ .github/workflows/issue-status-from-prs.yml (+197 -0)

📄 Description

Linked issue

No linked issue. This follows up on the staging issue-status cleanup where PRs targeting staging were not making linked issues appear in progress or fixed-in-staging.

Why this change

  • Issues referenced by PRs targeting staging can remain visibly open without clear status because GitHub does not close them until the fix reaches the default branch.
  • Maintainers need issues with open staging PRs to show as in progress, and issues already merged to staging to show as pending release closure.

What changed

  • Added a pull_request_target workflow for PRs that reference issues with Closes, Fixes, or Resolves.
  • Adds in-pr to open linked issues while an open PR targeting staging references them.
  • Adds staging to open linked issues when the referencing PR is merged into staging.
  • Reconciles stale in-pr labels against the current set of open staging PRs so edited PR bodies or retargeted PRs do not leave stale issue status.
  • Ignores closed issues and cross-repository issue references.

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

  • Codex parsed .github/workflows/issue-status-from-prs.yml as YAML successfully.
  • Codex syntax-checked the embedded actions/github-script JavaScript by wrapping it in an async function and running node --check.
  • Codex ran parser smoke coverage for Closes #1, #2, same-repo qualified references, cross-repo references, unrelated issue references, and empty bodies; it passed.
  • Codex ran pnpm check in a clean worktree based on upstream/staging; it passed.
  • Codex ran Bunny review before opening the PR; it passed with no blocking findings.
  • Manual verification after merge: open or edit a PR targeting staging with Closes #... and confirm the linked issue receives in-pr; merge that PR into staging and confirm the issue receives staging and loses in-pr.

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)

No user-facing docs or release metadata changed; this is repository workflow automation only.

UI evidence (if applicable)

N/A. This is GitHub issue/PR workflow automation with no app UI surface.


🔄 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/978 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/18/2026 **Status:** ✅ Merged **Merged:** 5/18/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `ci/issue-status-from-prs` --- ### 📝 Commits (1) - [`2d29218`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2d29218569eb751fd0608a9e3740c29675e2d4c3) Automate issue status labels for staging PRs ### 📊 Changes **1 file changed** (+197 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/issue-status-from-prs.yml` (+197 -0) </details> ### 📄 Description ## Linked issue No linked issue. This follows up on the staging issue-status cleanup where PRs targeting `staging` were not making linked issues appear in progress or fixed-in-staging. ## Why this change - Issues referenced by PRs targeting `staging` can remain visibly open without clear status because GitHub does not close them until the fix reaches the default branch. - Maintainers need issues with open staging PRs to show as in progress, and issues already merged to staging to show as pending release closure. ## What changed - Added a `pull_request_target` workflow for PRs that reference issues with `Closes`, `Fixes`, or `Resolves`. - Adds `in-pr` to open linked issues while an open PR targeting `staging` references them. - Adds `staging` to open linked issues when the referencing PR is merged into `staging`. - Reconciles stale `in-pr` labels against the current set of open staging PRs so edited PR bodies or retargeted PRs do not leave stale issue status. - Ignores closed issues and cross-repository issue references. ## 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 - Codex parsed `.github/workflows/issue-status-from-prs.yml` as YAML successfully. - Codex syntax-checked the embedded `actions/github-script` JavaScript by wrapping it in an async function and running `node --check`. - Codex ran parser smoke coverage for `Closes #1, #2`, same-repo qualified references, cross-repo references, unrelated issue references, and empty bodies; it passed. - Codex ran `pnpm check` in a clean worktree based on `upstream/staging`; it passed. - Codex ran Bunny review before opening the PR; it passed with no blocking findings. - Manual verification after merge: open or edit a PR targeting `staging` with `Closes #...` and confirm the linked issue receives `in-pr`; merge that PR into `staging` and confirm the issue receives `staging` and loses `in-pr`. ## 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) No user-facing docs or release metadata changed; this is repository workflow automation only. ## UI evidence (if applicable) N/A. This is GitHub issue/PR workflow automation with no app UI surface. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:18 +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#4866
No description provided.