Skip to content

fix: address PR #32 review comments on release automation#33

Merged
mikkeldamsgaard merged 1 commit intomainfrom
chore/release-automation
Mar 11, 2026
Merged

fix: address PR #32 review comments on release automation#33
mikkeldamsgaard merged 1 commit intomainfrom
chore/release-automation

Conversation

@mikkeldamsgaard
Copy link
Contributor

@mikkeldamsgaard mikkeldamsgaard commented Mar 11, 2026

Summary

  • Guard null SHA: When github.event.before is the null SHA (first push to main), skip version comparison instead of failing git show.
  • Use github.event.before SHA instead of HEAD~1 for version diff — reliably detects version bumps across multi-commit pushes and merges.
  • Check remote tags via git ls-remote before creating — handles shallow checkouts and concurrent tag creation gracefully.
  • Fix misleading cargo check comment in /release skill — it validates the build, not updates Cargo.lock.

Test plan

  • Verify auto-tag workflow YAML is valid
  • Verify /release skill wording is accurate
  • Confirm CI passes

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings March 11, 2026 23:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Addresses review comments from PR #32 on the release automation: uses github.event.before SHA instead of HEAD~1 for version diffing, checks remote tags via git ls-remote before creating, and fixes the cargo check comment in the /release skill.

Changes:

  • Auto-tag workflow updated to use github.event.before and git ls-remote for robust version-bump detection and tag creation
  • /release skill comment corrected from "updates Cargo.lock" to "validates the build"
  • CHANGELOG updated with entries for the new automation features

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/auto-tag.yml New workflow using github.event.before for version diff and git ls-remote for tag existence checks
.claude/commands/release.md New release skill with corrected cargo check description
CHANGELOG.md Added unreleased entries for auto-tag workflow and /release skill

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Auto-tag workflow: detects Cargo.toml version bump on main push,
  creates and pushes git tag to trigger the release workflow.
  Uses github.event.before for reliable diff, guards against null SHA
  on first push, and checks remote tags before creating.
- /release Claude Code skill: guided release preparation with semver
  determination, confirmation phase, and PR creation.
- CHANGELOG updated with new automation entries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mikkeldamsgaard mikkeldamsgaard force-pushed the chore/release-automation branch from af47e0b to 37bbd63 Compare March 11, 2026 23:18
@mikkeldamsgaard mikkeldamsgaard merged commit 8b46f95 into main Mar 11, 2026
6 checks passed
@mikkeldamsgaard mikkeldamsgaard deleted the chore/release-automation branch March 11, 2026 23: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