Changelog subsection in addition to kinds #219
-
I just started to play with I don't think this is possible with Something along the lines of this:
I think this is a pretty common scenario in open source. If this isn't possible with |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Currently there is no option for this, you could add an extra custom input to add each contributor as part of each change sort of like: https://github.com/goreleaser/goreleaser/releases/tag/v1.3.0. But not the option of adding contributors with avatars at the bottom. At the moment changie has no context to git as it works entirely from input so you would have to provide it the value of your github account. Changie could support this similar to how it does the body, maybe as an optional configuration but there are no plans for supporting it as of now. I think it would be interesting to support this but it would have to be sort of agnostic to git and contributors as a whole. Which may sound weird but what if there was say a custom input for "githubAccount" on each change. Then a custom blocks section that looked sort of like: # purely hypothetical here don't get attached
custom:
- key: githubAccount
type: string
minLength: 2
# we would run the block format per change to create a block at the end.
# this would happen during the batch command.
blocks:
- label: "Contributors"
fields:
- "githubAccount" # could grab multiple?
unique: true # not quite right if we support multiple fields as what would be unique then?
sort: "asc" # would need to specify which field to sort by
format: "- [@{{.accountName}}](https://github.com/{{.accountName}})" There would probably be a few examples for common situations as it could be complex. This sort of format, although verbose, would support contributors along with other end of release notes things like counting the number of fixed bugs or total fixed changes. The query system would have to be refined and would probably turn into a bit of a mess but hard coding contributors is not really what I would want to do. Kind of rambling at this point so tl;dr you can add custom inputs per change, you can not add a custom block. |
Beta Was this translation helpful? Give feedback.
-
Something like this would be really useful for my company too! @miniscruff What if instead of it being so prescriptive you could just specify a custom footer to the generated change md file custom:
- key: githubAccount
type: string
minLength: 2
batch:
footer: |
Contributors:
{{ range $item := .changes }}
- [@{{$item.accountName}}](https://github.com/{{$accountName}})
{{ end }} This way its super flexible to any other kind of footer additions as well as possibly great for my custom usecase too. Then it could also be easily extended to completely control the creation of the batch changelog with header, body and footer expression format - IE: batch:
header:
body:
footer: I don't love the "batch" name here if there is something better let me know. I would be highly interested in implementing this for you! |
Beta Was this translation helpful? Give feedback.
-
This feature is now included in v1.4.0 https://github.com/miniscruff/changie/releases/tag/v1.4.0 Edit: With the change to auto generated config docs the new URL is https://changie.dev/config/#config-footerformat. Thanks @llaville |
Beta Was this translation helpful? Give feedback.
This feature is now included in v1.4.0 https://github.com/miniscruff/changie/releases/tag/v1.4.0
, and an example was included in the docs that might help https://changie.dev/config/header-footer/#contributors-footer.Edit: With the change to auto generated config docs the new URL is https://changie.dev/config/#config-footerformat. Thanks @llaville