Skip to content

chore(release): add release tools to mage#254

Open
dmcilvaney wants to merge 3 commits into
microsoft:mainfrom
dmcilvaney:damcilva/changelog
Open

chore(release): add release tools to mage#254
dmcilvaney wants to merge 3 commits into
microsoft:mainfrom
dmcilvaney:damcilva/changelog

Conversation

@dmcilvaney

@dmcilvaney dmcilvaney commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Follow on PR will enable workflows to automate this against the protected main branch.

Copilot AI review requested due to automatic review settings June 26, 2026 18:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds first-class release/changelog tooling to the repo by introducing Mage targets for generating CHANGELOG.md entries (via git-cliff) and creating release tags from the changelog, along with the supporting docs and dependency tracking needed to automate releases later.

Changes:

  • Add mage changelog and mage release targets (draft changelog generation + tag creation from CHANGELOG.md).
  • Introduce git-cliff pinning via Cargo + Dependabot tracking, and add cliff.toml config plus initial CHANGELOG.md.
  • Improve user/developer documentation around installation, changelog, and release process.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/README.md Documents that tools/ may include non-Go tools and explains the git-cliff pinning approach.
tools/git-cliff/src/lib.rs Adds an intentionally-empty Rust crate to support Cargo-based version pinning.
tools/git-cliff/Cargo.toml Pins git-cliff CLI version in a Dependabot/scanner-visible manifest.
README.md Adds badges, updates install instructions to @latest, and links to the changelog.
pkg/app/azldev_cli/azldev.go Adds package/API documentation for the CLI wiring entrypoint.
magefiles/magerelease/magerelease.go Implements Mage release tooling (Changelog, Release) and helpers.
magefiles/magefile.go Imports the new Mage release package to expose targets.
docs/developer/README.md Links the new release how-to guide from the developer docs index.
docs/developer/how-to/releasing.md Adds a step-by-step release process and changelog guidance.
cmd/azldev/azldev.go Adds top-level command documentation suitable for pkg.go.dev.
cliff.toml Adds git-cliff configuration for changelog generation.
CHANGELOG.md Introduces an initial Keep-a-Changelog formatted changelog.
.github/dependabot.yml Enables Dependabot updates for the Cargo-based git-cliff pin.

Comment thread magefiles/magerelease/magerelease.go Outdated
Comment thread magefiles/magerelease/magerelease.go
Comment thread CHANGELOG.md
@@ -0,0 +1,48 @@
# Changelog

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Were this file's contents actually generated by git cliff? They look more massaged than that. Won't they get overwritten when git cliff gets run?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, it will leave hand-edited content alone.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I did just update with a linter directive though.

Copilot AI review requested due to automatic review settings June 26, 2026 23:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread magefiles/magerelease/magerelease.go Outdated
Comment thread magefiles/magerelease/magerelease.go
Comment thread magefiles/magerelease/magerelease.go
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.

3 participants