Skip to content

chore(ci): sync bump-version from template rust/bump-version - #290

Merged
vibepodml[bot] merged 3 commits into
mainfrom
orcastrate/sync/bump-version
Nov 19, 2026
Merged

vibepodml[bot] merged 3 commits into
mainfrom
orcastrate/sync/bump-version

Conversation

@michidk-orcastrate

@michidk-orcastrate michidk-orcastrate Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🐬 Orcastrate Workflow Sync

This PR was automatically generated by orcastrate 🐬 to sync workflow files with their canonical templates.

.github/workflows/bump-version.yml — template rust/bump-version (+52 -9)

Diff

--- a/.github/workflows/bump-version.yml
+++ b/.github/workflows/bump-version.yml
@@ -158,14 +158,57 @@
           fi
 
 
-      - name: Commit and atomically push version and tag
+      - name: Publish signed version commit and tag
         if: steps.version.outputs.skip != 'true'
+        env:
+          GH_TOKEN: ${{ steps.release-token.outputs.token }}
+          GH_REPO: ${{ github.repository }}
+          CO_AUTHORS: >-
+            []
         run: |
-          git config user.name 'github-actions[bot]'
-          git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
-          git add -- Cargo.toml Cargo.lock ':(glob)**/Cargo.toml'
-          if ! git diff --cached --quiet; then
-            git commit -m "chore(release): v$VERSION"
-          fi
-          git tag "v$VERSION"
-          git push --atomic origin "HEAD:refs/heads/$DEFAULT_BRANCH" "refs/tags/v$VERSION"
+          python3 - <<'PYCOMMIT'
+          import base64
+          import json
+          import os
+          from pathlib import Path
+          import subprocess
+
+          def gh(*args, payload=None):
+              command = ["gh", "api", *args]
+              if payload is not None:
+                  command += ["--input", "-"]
+              return json.loads(subprocess.check_output(
+                  command, input=json.dumps(payload) if payload is not None else None,
+                  text=True))
+
+          head = subprocess.check_output(["git", "rev-parse", "HEAD"], text=True).strip()
+          files = subprocess.check_output([
+              "git", "diff", "--name-only", "-z", "HEAD", "--",
+              "Cargo.toml", "Cargo.lock", ":(glob)**/Cargo.toml"], text=True).split("\0")
+          files = [path for path in files if path]
+          repo = os.environ["GH_REPO"]
+          tag = "v" + os.environ["VERSION"]
+          trailers = ["Co-authored-by: " + author
+                      for author in dict.fromkeys(json.loads(os.environ["CO_AUTHORS"]))]
+          if files:
+              result = gh("graphql", payload={
+                  "query": "mutation($input: CreateCommitOnBranchInput!) { createCommitOnBranch(input: $input) { commit { oid } } }",
+                  "variables": {"input": {
+                      "branch": {"repositoryNameWithOwner": repo,
+                                 "branchName": os.environ["DEFAULT_BRANCH"]},
+                      "expectedHeadOid": head,
+                      "message": {"headline": "chore(release): " + tag,
+                                  "body": "\n".join(trailers)},
+                      "fileChanges": {"additions": [
+                          {"path": path, "contents": base64.b64encode(Path(path).read_bytes()).decode()}
+                          for path in files]}}}})
+              head = result["data"]["createCommitOnBranch"]["commit"]["oid"]
+              commit = gh(f"repos/{repo}/commits/{head}")["commit"]
+              if not commit["verification"]["verified"]:
+                  raise SystemExit("GitHub did not verify the release commit signature")
+              if any(trailer not in commit["message"].splitlines() for trailer in trailers):
+                  raise SystemExit("The release commit is missing a co-author trailer")
+          gh(f"repos/{repo}/git/refs", payload={"ref": "refs/tags/" + tag, "sha": head})
+          with open(os.environ["GITHUB_STEP_SUMMARY"], "a") as summary:
+              summary.write(f"Created {tag} at {head}\n")
+          PYCOMMIT

Managed by orcastrate 🐬. Do not edit managed sections manually.


Summary by cubic

Syncs the bump-version workflow with the rust/bump-version template so release commits and tags are now created through the GitHub API instead of local git commands. Release commits now include configured co-authors.

  • Replaces the direct commit/tag/push step with a script that publishes a signed commit and tag via the GitHub GraphQL and REST APIs.
  • Adds configured co-authors (Michael Lohr and Codex) as trailers on release commits and verifies the commit signature and trailers before proceeding.
  • Adds a step summary entry noting the created tag and its commit SHA.

Written for commit 48476e4. Summary will update on new commits.

View guided diff Turn on auto-fix

@codacy-production

codacy-production Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (ce5b5b8) 1659 222 13.38%
Head commit (48476e4) 1659 (+0) 222 (+0) 13.38% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#290) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

vibepodml Bot and others added 2 commits November 19, 2026 09:14
Co-authored-by: Michael Lohr <michael@lohr.dev>
Co-authored-by: Codex <codex@openai.com>
@sonarqubecloud

Copy link
Copy Markdown

@vibepodml
vibepodml Bot merged commit b83a4da into main Nov 19, 2026
12 checks passed
@vibepodml
vibepodml Bot deleted the orcastrate/sync/bump-version branch November 19, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants