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] more options for cog bump, for example not to generate changelog #215
Comments
There are a lot of good ideas here ! I tend to strictly follow the conventional commit and semver spec so I am probably missing
Something like
This probably belongs to a dedicated sub-command, maybe
To sum up the following flags needs to be implemented and the corresponding configuration fields :
|
I generated my tag_prefix = "v"
ignore_merge_commits = true
branch_whitelist = ["master", "main"]
pre_bump_hooks = [
"echo {{version}}",
]
post_bump_hooks = [
"git push",
"git push --tags",
]
[commit_types]
[changelog]
path = "CHANGELOG.md"
template = "remote"
remote = "github.com"
repository = "proto"
owner = "threat-zero"
authors = [{ username = "xmlking", signature = "Sumanth Chinthagunta" }]
[bump_profiles] when i dry |
@xmlking You just need to prepend |
Another great option with cog bump would be to allow major increment with |
I was about to submit a new feature request (see below) which very closely relates to some of the features requested here. What do you think of having 3 "unix-style" commands to allow a high configurability. Something like:
Here my already finished feature request to give a concrete use case:Is your feature request related to a problem? Please describe. The last (release) job gathers all artifacts from the previous jobs, commits the VERSION file (among others) and then does an actual Describe the solution you'd like
Describe alternatives you've considered Calculating the version with cocogitto in every pipeline job which requires the version. But this has drawbacks to the proposed change:
|
This sounds like a good idea to me. |
Is your feature request related to a problem? Please describe.
I am trying
cog
on an existing repo usingsemantic-release
. When trying to usecog bump --auto
, i get an error:Describe the solution you'd like
In general, i think cog should be less strict with repos having a mixed history of conventional commits, tags, or different CHANGELOG format. This echoes to #212 too.
More widely, cog bump is doing a lot at the moment. I understand some people would like all the bells and whistles, but i also like the unix philosophy that a binary should do one thing.
One reason i am trying to move away from
semantic-release
is exactly because of that. You can't just get the version from the bump, it will always run hooks, close issues etc. And cog seems to follow the same path.For instance, one thing you cannot do with semantic-release would be to split the steps, for example if you want to (in CI):
cog already has a
changelog
command. I find it nice that you can do everything withcog bump
, which saves the hassle of writing shell scripts to tie everything together, but it should also allow for much simpler behaviours:For instance if i was to use cog to generate the next version for a SNAPSHOT release in a Maven build, i don't want the commit to be added to git. I also don't want the changelog.
Describe alternatives you've considered
convco follows the unix philosophy and works better in repos with a mixed history of commits and tags, and also an existing changelog
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: