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

Feature: add pre-release hook #187

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MadsRC
Copy link

@MadsRC MadsRC commented Jan 21, 2025

This PR adds a hook just prior to creating a release.

My use-case for this is a desire to trigger a build of a code-base, units tests and other tests before release. This allows one to do minimal amount of work after the release has been created, and thus also allows one to not have to deal with rolling back a release should that code fail for whatever reason.

If this PR is approved, I intend to add support for this hook to the exec plugin as well.

Notes:

  1. I'm not sure on the naming of the hook. PreRelease does describe what the hook does, but it also might be confusing as it clashes with the prerelease concept from SemVer. Let me know if another name should be used.
  2. I didn't include changes from running the scripts/generate.sh script because I couldn't find the similar versions of protoc, protoc-gen-go and protoc-gen-go-grpc easily. I tried with the latest versions and the code seems to compile fine, but there's a lot of changes introduced. Let me know if there's some other way you usually run the script, if I should generate using latest versions or if I should spend time sourcing the right versions.

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.

1 participant