WIP: Generate Changelog automagically #1298

Closed
bkcsoft wants to merge 4 commits from bkcsoft/changelog-generator into master
bkcsoft commented 2017-03-17 05:54:53 +00:00 (Migrated from github.com)

What it does:

Automagically generate changelog on make release ?

TODO:

  • Generate changelog
  • Append historical changelog (kept in changelog/HISTORICAL.md
  • Move unreleased-section in current changelog to yaml-files
  • Updated the Makefile
  • Make it efficient ?
  • Document it :trollface:

Format: (stolen from #505)

kind: enhancement # Mandatory! Possible values: breaking, feature, bugfixes, enhancement, misc
title: A short title that explains the change # Mandatory
pull_request: 256 # Mandatory. Number to indicate which PR this was made in.
issue: 234 # Optional. Issue number that got closed by this.
author: tboerger # Optional. The author/authors of the PR

Current implementation is extremely write-intensive... That should be fixed ?

Please be brutal when reviewing this, since it needs to work 100% flawless

I assigned all Owners to review, since we deal with this pain. Also assigned Team maintainers since I want more eyes on this code ?

Closes #505

## What it does: Automagically generate changelog on `make release` ? ### TODO: - [x] Generate changelog - [x] Append historical changelog (kept in `changelog/HISTORICAL.md` - [x] Move unreleased-section in current changelog to yaml-files - [x] Updated the Makefile - [ ] Make it efficient ? - [ ] Document it :trollface: ### Format: (stolen from #505) ``` kind: enhancement # Mandatory! Possible values: breaking, feature, bugfixes, enhancement, misc title: A short title that explains the change # Mandatory pull_request: 256 # Mandatory. Number to indicate which PR this was made in. issue: 234 # Optional. Issue number that got closed by this. author: tboerger # Optional. The author/authors of the PR ``` Current implementation is _extremely_ write-intensive... That should be fixed ? _Please_ be brutal when reviewing this, since **it needs to work** 100% flawless I assigned all Owners to review, since _we_ deal with this pain. Also assigned Team maintainers since I want more eyes on this code ? Closes #505
bkcsoft commented 2017-03-17 06:05:46 +00:00 (Migrated from github.com)

@strk Since I moved your changelog to a file, do you want your full name in there or nickname? (or both)

@strk Since I moved your changelog to a file, do you want your full name in there or nickname? (or both)
tboerger (Migrated from github.com) requested changes 2017-03-17 06:45:18 +00:00
tboerger (Migrated from github.com) left a comment

Maybe generally use log instead of fmt?

Maybe generally use log instead of fmt?
tboerger (Migrated from github.com) commented 2017-03-17 06:38:16 +00:00

The definition into main to avoid conflicts?

The definition into main to avoid conflicts?
tboerger (Migrated from github.com) commented 2017-03-17 06:38:45 +00:00

Within the other scripts I have moved that into main as well

Within the other scripts I have moved that into main as well
tboerger (Migrated from github.com) commented 2017-03-17 06:41:24 +00:00

Exit?

Exit?
tboerger (Migrated from github.com) commented 2017-03-17 06:44:38 +00:00

Incomplete or unused?

Incomplete or unused?
tboerger (Migrated from github.com) reviewed 2017-03-17 06:46:44 +00:00
tboerger (Migrated from github.com) commented 2017-03-17 06:46:13 +00:00

Shouldn't be part of the historical file

Shouldn't be part of the historical file
bkcsoft (Migrated from github.com) reviewed 2017-03-17 07:02:06 +00:00
bkcsoft (Migrated from github.com) commented 2017-03-17 07:02:06 +00:00

Unused

Unused
strk (Migrated from github.com) reviewed 2017-03-17 08:51:43 +00:00
strk (Migrated from github.com) commented 2017-03-17 08:51:43 +00:00

This sounds brutal. A Makefile target that always unconditionally appends to a file ?
I see that file is created by the unreleased/*.md target, but it isn't at all intutitive.

This sounds brutal. A Makefile target that always unconditionally appends to a file ? I see that file is created by the unreleased/*.md target, but it isn't at all intutitive.

ChangeLog codes maybe should be in modules/changelog so that we can add a feature to gitea as generate a changelog. Then when we eat dogfood, we could use it and no need write twice.

ChangeLog codes maybe should be in `modules/changelog` so that we can add a feature to gitea as `generate a changelog`. Then when we eat dogfood, we could use it and no need write twice.
bkcsoft commented 2017-03-19 17:00:49 +00:00 (Migrated from github.com)

@lunny I thought go run didn't like modules. But now that I think about it, it makes a lot of sense to make it a package ?

@lunny I thought `go run` didn't like modules. But now that I think about it, it makes a lot of sense to make it a package ?
bkcsoft commented 2017-03-19 17:01:04 +00:00 (Migrated from github.com)

@lunny Maybe even it's own repo?

@lunny Maybe even it's own repo?

@bkcsoft I just give an advice to reuse the functions. But I cannot give you some ideas about how to do that.

@bkcsoft I just give an advice to reuse the functions. But I cannot give you some ideas about how to do that.
bkcsoft (Migrated from github.com) reviewed 2017-03-20 01:23:50 +00:00
bkcsoft (Migrated from github.com) commented 2017-03-20 01:23:50 +00:00

I've updated it so it hopefully makes more sense :)

I've updated it so it hopefully makes more sense :)
bkcsoft commented 2017-03-20 01:24:16 +00:00 (Migrated from github.com)

@tboerger I've updated according to your request :)

@tboerger I've updated according to your request :)
bkcsoft commented 2017-03-24 14:44:47 +00:00 (Migrated from github.com)

@lunny @tboerger I made it into it's own repo. You can find it here: https://gitlab.com/bkc/changelogger

@lunny @tboerger I made it into it's own repo. You can find it here: https://gitlab.com/bkc/changelogger

@bkcsoft great!

@bkcsoft great!

build failed.

build failed.
bkcsoft commented 2017-06-15 02:42:37 +00:00 (Migrated from github.com)

I'm closing this in favour of the actual package.

I'm closing this in favour of the actual package.
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#1298
No description provided.