Skip to content

Sync release/0.2 from integration and check closing choices there - #677

Merged
rocklambros merged 1 commit into
integrationfrom
ci/release-0.2-sync
Nov 26, 2026
Merged

rocklambros merged 1 commit into
integrationfrom
ci/release-0.2-sync

Conversation

@rocklambros

Copy link
Copy Markdown
Collaborator

What changed

PR #675 sends 0.2 spec work to release/0.2. This closes two gaps it leaves:

  • .github/workflows/sync-release.yml is new. On every push to integration, it checks whether integration is still an ancestor of release/0.2. If not, and no sync pull request is open, it opens one from integration into release/0.2. It holds contents: read and pull-requests: write only, and no event text reaches its script.
  • closing-choice.yml now runs on pull requests into release/* as well as integration, so the ten spec PRs moved to release/0.2 keep the check.

The sync pull request has to merge with a merge commit. A squash or a rebase never makes integration an ancestor of release/0.2, so the next run would reopen it with every earlier change. The protect-release ruleset allowed only squash and rebase, so I added merge commits to it. The repository already allows them for promotions. A pull request opened with GITHUB_TOKEN starts no workflows, so a lead closes and reopens the sync pull request to run its checks, the same as the existing sync from main.

Which issue does this implement

Refs #99

Base branch

  • integration

Type of change

  • Tooling or CI

I tested this

  • uv run pytest -q passes (1265 passed, 1 skipped). tests/test_sync_release_workflow.py pins the triggers and permissions and runs the script against a scratch repository: it does nothing when release/0.2 carries integration, opens a pull request when integration moves ahead, and exits quietly when the branch is gone.
  • actionlint passes on both workflows
  • zizmor 1.30.1 from uv.lock reports no findings on both workflows

Checklist

  • Commits are signed off with git commit -s (required by the DCO)
  • No secrets, tokens, or internal URLs in the diff

Security

The new job can open pull requests. Its only inputs are the branch name in the file and git's refs, and its checkout keeps no credentials.

A new workflow opens a pull request into release/0.2 whenever integration is no longer its ancestor, so fixes reach both release lines. The closing-choice check now runs on pull requests into release branches too.

Signed-off-by: rocklambros <rock@rockcyber.com>
@rocklambros
rocklambros merged commit 3c8724b into integration Nov 26, 2026
15 checks passed
@rocklambros
rocklambros deleted the ci/release-0.2-sync branch November 26, 2026 15:21
@github-project-automation github-project-automation Bot moved this from Needs triage to Done in ACS Project Tracker Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants