-
Notifications
You must be signed in to change notification settings - Fork 248
Add release-drafter config #361
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
Changes from 5 commits
60914e5
28741f8
0f97e42
0a79e69
b064cad
5f62383
7db7668
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
categories: | ||
- title: 'Major Changes' | ||
labels: | ||
- 'major' # c6476b | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We need to be careful to keep labels under control as I seen projects with tickets becoming like xmas tree and confusing users, most not even knowing what to pick. This list is short but enough in order to put changes in the right bucket (section). We can revise if needed but first let it settle so we get used to adding the right labels to the tickets. BTW, My favorite feature is the release-drafter is that you can add the label or fix the PR title after the merge and at the next run, it will correct the draft. Still once a release is made, the bot will not touch the text, only humans can edit it. There is also the aspect of "breaking" having negative connotations, something we may want to avoid. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair points. Can you address my larger question about it isn't better to use Semantic Release and get all this PLUS automatic release? @ssbarnea There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While I never used Semantic Release, two things come into my mind:
Altering commit message does retrigger the whole testing pipelines. That is why I prefer the idea of dealing with release notes on a OOB channel, as it is mostly bureaucracy, needed but it should not block or slowdown the PRs. Please note that I did not propose to ditch current changelog (or the guidelines for changes). So mainly what we do now is to experiment how good is this approach for our project. I do expect to copy/paste the release notes and merge them to the changelog before each release, at least until we are confident that it works fine. I do not want to confuse existing users with something the cores are only exploring. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm inclined to agree with the two points @ssbarnea brings up above ( especially point 2 ). We could always move to semantic release if we find this too tedious There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Well, it still is. Based on the the tag used in the commit message a release (major/minor/patch) will happen - or not. What's the point in hoarding? If we merged a new feature, an update or a bugfix, why not release that right away?
We don't have to use commit messages as release notes. That's configurable. The commit messages only drive if a release happens and what type. What's being merged is controlled by a select few of us. If you feel wrong things are being merged we need to have a discussion about that and actions need to be taken to stop or at least minimize the risk. Furthermore there are tools to make sure that commit messages follow a set pattern. We use Semantic Release in a professional setting across many different repos. If it's good enough for that, it's good enough for OS. However, with that said, one potential negative aspect is if there are too many hoops to jump through to contribute to the project, we may scare away new contributors. But, like @gnikonorov said, nothing stopping us from trying out SR later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is gold "one potential negative aspect is if there are too many hoops to jump through to contribute to the project, we may scare away new contributors." -- I seen in in the past, where maintainers succeeded in adding enough bureaucracy to deter most users. I am really glad we are aware of the risks. This area is more of a tuning game, as long we adapt fast and learn from our mistakes we should be fine. |
||
- title: 'Minor Changes' | ||
labels: | ||
- 'feature' # 006b75 | ||
- 'enhancement' # ededed | ||
- 'performance' # 555555 | ||
- 'docs' # 4071a5 | ||
BeyondEvil marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- title: 'Bugfixes' | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
ssbarnea marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- 'bug' # fbca04 | ||
Comment on lines
+13
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I question if we really need all three of these? I would say |
||
- 'packaging' # 4071a5 | ||
- 'test' # #0e8a16 | ||
ssbarnea marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- title: 'Deprecations' | ||
labels: | ||
- 'deprecated' # fef2c0 | ||
exclude-labels: | ||
- 'skip-changelog' | ||
template: | | ||
## Changes | ||
|
||
$CHANGES |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
- 'releases/**' | ||
ssbarnea marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- 'stable/**' | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Uh oh!
There was an error while loading. Please reload this page.