Skip to content

Reincorporate template publish-dispatch guards and JSON casing fix#759

Merged
ptr727 merged 1 commit into
developfrom
reincorporate-publish-guard-template
Jun 23, 2026
Merged

Reincorporate template publish-dispatch guards and JSON casing fix#759
ptr727 merged 1 commit into
developfrom
reincorporate-publish-guard-template

Conversation

@ptr727

@ptr727 ptr727 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Re-sync the upstream ProjectTemplate fixes (ptr727/ProjectTemplate#184 / #185, which Fixes #181/#182/#183) that resolved the publish-dispatch mis-versioning defect surfaced while re-syncing this downstream onto the template.

Changes

  • publish-release.yml: fail fast when a publish is dispatched on a non-default ref. The matrix builds both branches regardless of the triggering ref, so a non-default dispatch mis-versions the main leg and publishes a malformed non-prerelease release that GitHub marks "Latest".
  • build-release-task.yml: refuse to create a main release whose SemVer2 carries a prerelease suffix (root-cause-agnostic safety net backing the dispatch-ref guard).
  • .editorconfig: correct JSON/JSONC casing in the section comment (CODESTYLE official-casing rule).

The fourth file in the upstream commit (build-pypilibrary-task.yml) does not apply — PlexCleaner is not a Python library. Workflow/governance changes only; no version bump.

🤖 Generated with Claude Code

Re-sync the upstream ProjectTemplate fixes (ptr727/ProjectTemplate#184/#185,
Fixes #181/#182/#183) that resolved the publish-dispatch mis-versioning defect
surfaced while re-syncing this downstream.

- publish-release.yml: fail fast when a publish is dispatched on a non-default
  ref; the matrix builds both branches, so a non-default dispatch mis-versions
  the main leg and publishes a malformed non-prerelease "Latest".
- build-release-task.yml: refuse to create a main release whose SemVer2 carries
  a prerelease suffix (root-cause-agnostic safety net).
- .editorconfig: correct JSON/JSONC casing in the section comment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 23, 2026 00:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR re-syncs upstream ProjectTemplate fixes to harden the release publishing workflows against mis-versioning when manually dispatched from a non-default ref, and aligns .editorconfig JSON comment casing with established documentation conventions.

Changes:

  • Add a fail-fast guard in publish-release.yml to prevent workflow_dispatch runs from non-default refs (since schedule/dispatch builds both main and develop in the matrix).
  • Add a safety-net check in build-release-task.yml that refuses to publish a main GitHub release if SemVer2 contains a prerelease suffix.
  • Fix .editorconfig section comment casing for JSON/JSONC.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/publish-release.yml Blocks manual dispatch on non-default refs to avoid main leg mis-versioning in the two-branch publish matrix.
.github/workflows/build-release-task.yml Adds a guardrail to prevent publishing a public (main) release with a prerelease SemVer2.
.editorconfig Normalizes JSON/JSONC comment casing to JSON / JSONC.

@ptr727 ptr727 merged commit a5076a2 into develop Jun 23, 2026
6 checks passed
@ptr727 ptr727 deleted the reincorporate-publish-guard-template branch June 23, 2026 00:21
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