Skip to content

ci(workflows): also run on reopened pull requests - #337

Merged
KaiSchwarz-cnic merged 1 commit into
masterfrom
RSRMID-2998/pr-reopened-trigger
Aug 26, 2026
Merged

ci(workflows): also run on reopened pull requests#337
KaiSchwarz-cnic merged 1 commit into
masterfrom
RSRMID-2998/pr-reopened-trigger

Conversation

@KaiSchwarz-cnic

Copy link
Copy Markdown
Contributor

Jira: https://centralnic.atlassian.net/browse/RSRMID-2998

Adds reopened to the pull_request trigger's types: list.

Why

An explicit types: list replaces GitHub's default
opened, synchronize, reopened — it does not extend it. These workflows listed
only opened and synchronize, so reopening a pull request created no run at
all.

Where such a workflow publishes a required status check, that leaves a
reopened pull request permanently blocked. The check is absent rather than
failed, so there is nothing to re-run, and the only way out is pushing another
commit to the head branch.

Why now, and why this is not urgent

REQUIRED_CHECKS is currently set for only four repositories (php-sdk,
template, devcontainer-features, workspace) and none of them is affected —
php-sdk already lists reopened. So the gap is latent today.

It goes live the moment RSRMID-2991 fills REQUIRED_CHECKS for the remaining
repositories: these files become merge-blocking, and the failure surfaces as a
stuck pull request rather than a red check. Fixing it beforehand is a one-line
edit; afterwards it is a debugging session.

Scope

Option A of two — add the type explicitly, rather than deleting types: and
inheriting the default. Explicit keeps the file auditable by grep and does not
leave a merge gate defined by a GitHub default that could change. Applied
identically across all ten affected files so an absent types: block stays
unambiguous.

Found by enumerating every workflow file in the registered repositories plus
shareable-workflows against their default branches: 10 correct, 54 with no
pull_request trigger, 10 affected. whmcs was not readable and is unverified.

No formatting changes are included. Four of these files already fail a
prettier check on their default branch, but prettier is neither a declared
dependency nor gated in CI there — reformatting would bury a one-line fix in
unrelated churn.

An explicit `types:` list replaces GitHub's default
`opened, synchronize, reopened` rather than extending it, so these workflows
never ran when a pull request was reopened.

Where such a workflow publishes a required status check, that leaves a reopened
pull request permanently blocked: the check is absent rather than failed, no run
exists to re-run, and the only way out is another push to the head branch.
REQUIRED_CHECKS is not yet set for these repositories, so the gap is latent
today — it goes live with RSRMID-2991.

RSRMID-2998
@KaiSchwarz-cnic
KaiSchwarz-cnic merged commit f8a53d8 into master Aug 26, 2026
2 of 7 checks passed
@KaiSchwarz-cnic
KaiSchwarz-cnic deleted the RSRMID-2998/pr-reopened-trigger branch August 26, 2026 21:34
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.

1 participant