Skip to content
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

Automate generating changelogs #10

Closed
4 tasks
pktiuk opened this issue Aug 28, 2020 · 11 comments
Closed
4 tasks

Automate generating changelogs #10

pktiuk opened this issue Aug 28, 2020 · 11 comments
Assignees
Labels
CI - Github Actions Issues involving usage of Github Actions and creating scripts used by ci documentation Improvements or additions to documentation enhancement New feature or request

Comments

@pktiuk
Copy link
Member

pktiuk commented Aug 28, 2020

Automated generation of changelogs would save a lot of time it would be good to integrate it with repository.
All would be based on semantic commit messages.

Things to do:

  • Write scripts generating changelogs (markdown would be the best format), old changelogs should be preserved.
  • integrate script generation with github actions (on merge to master + on publishing new release)
  • (if possible) create scripts generating changelogs in Fedora link and Debian-based link format
  • Write some simple guidelines for recommended naming of merge commits
@pktiuk pktiuk added documentation Improvements or additions to documentation enhancement New feature or request CI - Github Actions Issues involving usage of Github Actions and creating scripts used by ci labels Aug 28, 2020
@pktiuk
Copy link
Member Author

pktiuk commented Sep 11, 2020

Are there any ways of filtering commits to be mentioned in changelogs (by tags or by names/types of changed files)?
I don't want to fill our changelogs with README updates etc.

@gombosg
Copy link
Collaborator

gombosg commented Sep 12, 2020

I'll look into this, but first, Flathub and Fedora submission has priority.

@pktiuk
Copy link
Member Author

pktiuk commented Oct 1, 2020

Requirements for our changelogs:

  • describe changes visible for end-users (changing readme, or any similar files doesn't count)
  • don't include issues irrelevant for users (for example issues tagged as questions shouldn't be mentioned), I am not sure if issues should be mentioned in changelog at all 🤔
  • avoid duplicates (for example if we have bug mentioned by issue and single Pull request fixing it, we should mention only one of them)
  • It would be good to use Conventional Commits to have multiple categories

I am not sure about mentioning changes in code, which doesn't affect functionality (I mean cleanups, chores etc).

But in Release descriptions (visible on release site) we should show all the changes on repo since previous release Issues, Merges etc.
It would look there especially good, mainly because it is generated in Markdown and links relevant issues.

@gombosg
Copy link
Collaborator

gombosg commented Oct 1, 2020

https://github.com/github-changelog-generator/github-changelog-generator/wiki/Advanced-change-log-generation-examples
Here you can see which labels we can use.
Doing complex config is not possible here, if you want complex changelog, then we'll have to write it manually.

@pktiuk
Copy link
Member Author

pktiuk commented Oct 1, 2020

We could generate basic log, and later we could cut it using Python script (I can write this script).

@gombosg
Copy link
Collaborator

gombosg commented Oct 1, 2020

A simple git commit log command with sed or whatever?

@pktiuk
Copy link
Member Author

pktiuk commented Oct 1, 2020

I mean, we could generate regular changelog using this generator and later remove all of unwanted commits.

@pktiuk
Copy link
Member Author

pktiuk commented Oct 1, 2020

Or we could just generate these changelogs using your config and manually remove unwanted pieces (I think it will be the simplest solution, because removing some lines is pretty quick task).

@gombosg
Copy link
Collaborator

gombosg commented Oct 2, 2020

Okay, let's stick with that for now! :)

@gombosg
Copy link
Collaborator

gombosg commented Oct 2, 2020

For now I just changed labels for sections so that we can manually remove stuff.
We can also play around with section and PR labels: https://github.com/github-changelog-generator/github-changelog-generator/wiki/Advanced-change-log-generation-examples#section-options

So we'll only include e.g. enchantments and bugs, but not docs and packaging, or whatever.

@gombosg
Copy link
Collaborator

gombosg commented Nov 15, 2020

I'd close this issue for now, auto changelog generation works fine. We can reopen if more stuff comes up later. 🙂

@gombosg gombosg closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI - Github Actions Issues involving usage of Github Actions and creating scripts used by ci documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants