Skip to content

Add release-plz automation for versioning and release management#196

Merged
joaolfp merged 3 commits into
mainfrom
copilot/add-release-plz-automation
Mar 31, 2026
Merged

Add release-plz automation for versioning and release management#196
joaolfp merged 3 commits into
mainfrom
copilot/add-release-plz-automation

Conversation

Copilot AI commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Adds release-plz to automate changelog generation, version bumping, and GitHub releases on every push to main, mirroring the setup from heroesofcode/heroesofcode-git.

Changes

  • .github/workflows/release-plz.yml — Triggers on main pushes; runs release-plz/action with full git history to detect conventional commits and create release PRs
  • release-plz.toml — Configures release-plz for git-based releases with changelog updates; publish = true to enable publishing to crates.io
[workspace]
changelog_update = true
git_release_enable = true
publish = true

Requires RELEASE_PLZ_TOKEN and CARGO_REGISTRY_TOKEN secrets to be set in the repository settings.

Original prompt

Add release-plz automation to enable automated versioning and release management.

This includes:

  1. .github/workflows/release-plz.yml - GitHub Actions workflow that runs on main branch pushes to handle releases
  2. release-plz.toml - release-plz configuration file

These files are based on the proven setup in heroesofcode-git repository and will enable:

  • Automatic version bumping based on conventional commits
  • Automated changelog generation
  • Git-based release management
  • Pull request creation for releases

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: abre um MR no heroesofcode/spm-swift-package adicionando release plz igual do heroesofcode-git

Assistant: I need to clarify your request. You mentioned:

"um MR no heroesofcode/spm-swift-package adicionando release plz igual do heroesofcode-git"

This appears to be in Portuguese. Let me confirm what you're asking for:

You want to create a merge request (MR) / pull request (PR) in the heroesofcode/spm-swift-package repository that adds a release plz configuration similar to the one in heroesofcode-git.

Before I proceed, I need to:

  1. Verify the repository exists: Is it heroesofcode/spm-swift-package?
  2. Check the reference repository: Where should I look for the release-plz configuration? Is it in the heroesofcode-git repository?
  3. Clarify the scope: Do you want me to:
    • Copy the exact release-plz configuration from heroesofcode-git to spm-swift-package?
    • Adapt it for the Swift package context?

Could you provide:

  • The full repository path for the reference (e.g., heroesofcode/heroesofcode-git)?
  • Any specific details about what the release-plz configuration should include?

Once confirmed, I'll create the pull request with the appropriate changes.

User: adicionar esse workflow

@heroesofcode/heroesofcode-git/files/.github/workflows/release-plz.yml
@heroesofcode/heroesofcode-git/files/release-plz.toml

Assistant: I'll create a pull request in the heroesofcode/spm-swift-package repository to add the release-plz workflow and configuration files.

Let me first fetch the necessary information to set up the PR correctly.

Assistant: Now I'll create a pull request with the release-plz workflow and configuration file for the heroesofcode/spm-swift-package repository.

Assistant: I'm waiting for your confirmation to proceed with creating the pull request. Please accept or reject the tool's proposed changes.

User: @Copilot Accepted Confirmation: Are you sure?

Assistant: Perfect! I've started creating a pull request to add the release-plz automation to your heroesofcode/spm-swift-package repository.

data:
    - title: '[WIP] Add release-plz automation for versioning and release management'
      repository: heroesofcode/spm-swift-package
      url: https://github.com/copilot/tasks/pull/PR_kwDONDGrcc7OzAzI?session_id=76a9d6de-d616-42cb-b1de-1d4194850b54
      state: queued

The PR will include:

  • .github/workflows/release-plz.yml - Workflow that triggers on pushes to the main branch to automate releases
  • release-plz.toml - Configuration enabling changelog updates, git-based releases, and workspace management

You can track the progress by following the task link above. The setup is based on the proven configuration from your heroesofcode-git repository.

User: abre igual para heroesofcode/xrun

Assistant: Awaiting your confirmation to proceed with creating the pull request for heroesofcode/xrun.

This pull request was created from Copilot chat.

Copilot AI changed the title [WIP] Add release-plz automation for versioning and release management Add release-plz automation for versioning and release management Mar 31, 2026
Copilot AI requested a review from joaolfp March 31, 2026 03:58
@joaolfp joaolfp marked this pull request as ready for review March 31, 2026 04:00
Comment thread release-plz.toml Outdated
[workspace]
changelog_update = true
git_release_enable = true
publish = false

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.

@copilot this must be true

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.

Updated in commit 4e11626publish = true now.

Agent-Logs-Url: https://github.com/heroesofcode/xrun/sessions/c259cfb5-736a-41ae-8356-fb2c6621a5dd

Co-authored-by: joaolfp <36343338+joaolfp@users.noreply.github.com>
Copilot AI requested a review from joaolfp March 31, 2026 04:03
@joaolfp joaolfp merged commit 7cff9d8 into main Mar 31, 2026
4 checks passed
@joaolfp joaolfp deleted the copilot/add-release-plz-automation branch March 31, 2026 04:08
@joaolfp joaolfp mentioned this pull request Mar 31, 2026
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