Skip to content

ci: add reviewable release pull request automation - #177

Merged
BeArchiTek merged 10 commits into
mainfrom
chore/release-pr-automation
Oct 9, 2026
Merged

BeArchiTek merged 10 commits into
mainfrom
chore/release-pr-automation

Conversation

@BeArchiTek

@BeArchiTek BeArchiTek commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Prepare Backup releases as reviewable pull requests. Merging a release PR publishes a GitHub Release, which starts the existing binary, image, and Homebrew workflow.

Key Changes

  • Resolve versions from Git tags; leave the unrelated e2e helper pyproject.toml version unchanged.
  • Assemble Towncrier in the release PR, publish only after merge, and add version labels and a label check.
  • Keep prerelease Docker images off latest and skip the Homebrew bump for prereleases.
  • Add a release-notes docs section and update release guidance.

Test Plan

  • actionlint and yamllint on the new workflows
  • Label checker positive and negative cases
  • git diff --check

Assisted-by: opsmill-dev-pr 0.2.0


Summary by cubic

Prepares releases as reviewable pull requests instead of publishing directly; merging a bot-authored release PR creates the GitHub Release that runs the existing binary, image, and Homebrew workflow.

  • Computes the next version from merged PR labels or an explicit dispatch input, validated against Git tags; an explicit version is required before the first release and the unrelated helper pyproject.toml stays unchanged.
  • Assembles the towncrier changelog inside the release PR, with publication gated on the merge and only opsmill-bot-authored release PRs from this repository trusted.
  • Requires exactly one changes/major, changes/minor, or changes/patch label on every PR, read from the event payload so PR code cannot weaken the check; bot-authored release PRs are exempt.
  • Skips the latest image tag and the Homebrew formula bump for prereleases, and creates releases without the latest flag; a reconciliation job marks the highest stable release as Latest after each publication.
  • Adds a per-commit concurrency group to prevent a pending release merge from being replaced by an unrelated push, and a release-notes docs section; AGENTS.md reflects the new fragment policy.
  • Moves the label checker into scripts/ for a stable import path and passes PR titles safely to it.

Written for commit 3c7a1e1. Summary will update on new commits.

View guided diff Turn on auto-fix

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Deploying infrahub-ops-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3c7a1e1
Status: ✅  Deploy successful!
Preview URL: https://8a7ee5ec.infrahub-ops-cli.pages.dev
Branch Preview URL: https://chore-release-pr-automation.infrahub-ops-cli.pages.dev

View logs

@BeArchiTek
BeArchiTek marked this pull request as ready for review October 9, 2026 10:38
@BeArchiTek
BeArchiTek requested a review from a team as a code owner October 9, 2026 10:38

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 12 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread .github/workflows/auto-bump.yml Outdated
Comment thread scripts/check_release_labels.py
Comment thread docs/docs/release-notes/index.mdx Outdated
Comment thread .github/workflows/release-label-check.yml Outdated
Comment thread scripts/check_release_labels.py
Comment thread AGENTS.md Outdated
Comment thread .github/workflows/release-publish.yml Outdated
@BeArchiTek BeArchiTek added the changes/patch Release with fixes or maintenance label Oct 9, 2026

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 9 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread .github/workflows/release-publish.yml Outdated
@BeArchiTek
BeArchiTek merged commit 21e9cf9 into main Oct 9, 2026
13 checks passed
@BeArchiTek
BeArchiTek deleted the chore/release-pr-automation branch October 9, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes/patch Release with fixes or maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant