Replies: 1 comment
-
Hi @meleu ! It looks like my comment was deleted when I converted your issue to a discussion. What I wanted to say, briefly, is that it looks like the branch protection problem is a fundamental limitation of GitHub. Other tools like release-it also run into it: release-it/release-it#962 There are some workarounds, but they are pretty hacky: https://github.com/orgs/community/discussions/25305 Thanks for checking out my template and starting this brainstorming thread! 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all: thanks for sharing this template!
I've been working in an internal CLI tool at job and noticed that I reached a similar result! 🙂
I also use the release-drafter to automate the release notes and the versioning in the repository.
One thing I didn't get solved yet, though: automatically bumping the version inside the
lib/GEM_NAME/version.rb
file.I initially solved it with a GitHub action to do both:
version.rb
using the version number from GitHub release.(the GH action is at the end of this post)
Such technique was working pretty well! But if I protect the
main
branch, the GitHub action is not able to commit and push the change bumping theversion.rb
(which is expected, of course).As I want the project to get more contributors, I want to protect the main branch, but I also would like to automate the gem version bumping...
Do you have any idea about how to automate this process?
Note: feel free to close this issue if you think it's unrelated with your project.
Beta Was this translation helpful? Give feedback.
All reactions