Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated version bumping and pypi package building #1446

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

samwinebrake
Copy link
Collaborator

This PR adds automated version bumping capabilities to the repo. Now whenever a PR is merged that isn't plugin-only, it will automatically trigger a version-bumping pipeline.

The current versioning system is v.major.minor.patch; merging a PR with no update label will cause the patch version to be updated, adding the minor update label will increment the minor version, and adding the major update label will increment the major version.

After the version is bumped, 2 different jobs run:

  1. Release notes are generated that outline what has changed, and identify the contributor(s) of the changes.
  2. The updated package is built and published to PyPI.

NOTE: Everything has been tested locally and on a fork, with the exception of the final publishing step to PyPI which will be tested on the merging of this PR.

@samwinebrake samwinebrake added the minor update apply to PRs to trigger minor release update label Nov 12, 2024
@samwinebrake samwinebrake requested a review from KartikP November 12, 2024 16:09
@samwinebrake samwinebrake self-assigned this Nov 12, 2024
Copy link
Collaborator

@KartikP KartikP left a comment

Choose a reason for hiding this comment

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

LGTM, will this workflow need to be implemented in the other repos?

Copy link
Member

@mike-ferguson mike-ferguson left a comment

Choose a reason for hiding this comment

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

Also LGTM, quick question: what is the default tag for a non plugin-only PR now? minor? As in any change that is not just a plugin will be a minor, unless otherwise specified to be major via the major tag?

@samwinebrake
Copy link
Collaborator Author

samwinebrake commented Nov 13, 2024

Also LGTM, quick question: what is the default tag for a non plugin-only PR now? minor? As in any change that is not just a plugin will be a minor, unless otherwise specified to be major via the major tag?

@mike-ferguson All PRs without a minor or major tag will be just added as a patch!

@samwinebrake
Copy link
Collaborator Author

LGTM, will this workflow need to be implemented in the other repos?

Yes, after this is PRed will implement something similar in core!

@samwinebrake samwinebrake merged commit 52ecc67 into master Nov 13, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor update apply to PRs to trigger minor release update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants