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
Add $CATEGORIES as a template variable #139
Comments
This feature makes a lot of sense to me. We should probably keep We could decide to introduce two new variables: |
It'd be really nice if we could switch to this: categories:
- title: 🚀 Features
label: feature
- title: 🐛 Bug Fixes
label: fix
template: |
$CHANGES producing:
and if you wanted to change the header label: categories:
- title: 🚀 Features
label: feature
- title: 🐛 Bug Fixes
label: fix
- title: 📝 Other Changes
template: |
$CHANGES (aka That might be hard to keep backwards compatibility though @TimonVS? |
Agreed @toolmantim, let's go with that :) |
I'd like to work on this, as an preparation I wanted to add schema to catch configuration mistakes, I feel like the configuration is becoming increasingly complex to warrant a schema. |
That’d be great @jetersen. I did that for https://buildkite.com/changelog/36-autocomplete-for-your-pipeline-dot-yml-files and it was 👌🏼 We can submit it to http://schemastore.org/json/ for the file pattern This would mean that when run as a GitHub Action (#181) we could output nicer config valuation errors too using AJV, as we did with https://github.com/buildkite-plugins/buildkite-plugin-linter |
Sure, I built the schema with Joi (idea taken from stale bot) I should be able to convert Joi to JSON schema 😉 |
+1 from me. I am working on the pre-release changelog generation for Release Drafter for https://github.com/jenkinsci/jenkins. , and I would like to add categories like My suggestion would be to not only follow the labels, but to actually introduce a new category ID field so that we can split the labeling and the changelog parts: categories:
- title: 🚀 New features and improvements
id: rfe
labels:
- enhancement
- feature
- title: 🐛 Bug Fixes
id: bug
labels:
- bug
- fix
- bugfix
- regression P.S: Current YAML draft is here: https://github.com/oleg-nenashev/jenkins/releases/tag/untagged-010cd0d0ed069df04d00 CC @daniel-beck |
Yeahhh this is an amazing product! We are incorporating it into our repo... and the first thing that strikes you is where the features are in relation to everything else. https://i.imgur.com/92cSUbB.gifv 😆 Having the ability to separate categories from the "remainder" would be awesome. 👍 |
I think with my recent changes to #412 this should be fairly easy to introduce as I have split the uncategorized changes from the changes array. |
created #1013 |
Currently the categories will just be appended to the end of the template. I would like to control where in the template they go. So if we had a
$CATEGORIES
variable that could go in thetemplate
string that would solve the problem.An example
would result in this:
The text was updated successfully, but these errors were encountered: