diff options
author | Yorick Peterse <yorick@yorickpeterse.com> | 2021-04-27 15:05:07 +0300 |
---|---|---|
committer | Yorick Peterse <yorick@yorickpeterse.com> | 2021-04-27 15:13:08 +0300 |
commit | 5ca77983480861729d8768c5a22ff3ce9a77dabe (patch) | |
tree | 6925e8e3deedc5629cb4e9f951e44d2d0108af6a /.gitlab | |
parent | 67520d7b374eea77f7412600271a90193bdd2e8a (diff) |
Prepare for upcoming changelog workflow changes
This adds a configuration file for generating changelogs using the
GitLab API (done using Release Tools), as well as change Danger to
remind developers of these upcoming changes (similar to what we're doing
in gitlab-org/gitlab).
Omnibus, Pages and Helm are already using this new approach. Our current
plan is to also roll this out to remaining projects (GitLab Rails and
Gitaly) per May 22nd.
See https://gitlab.com/gitlab-com/gl-infra/delivery/-/issues/1564 for
more information.
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/changelog_config.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.gitlab/changelog_config.yml b/.gitlab/changelog_config.yml new file mode 100644 index 000000000..7aa18cc8f --- /dev/null +++ b/.gitlab/changelog_config.yml @@ -0,0 +1,38 @@ +--- +# Settings for generating changelogs using the GitLab API. See +# https://docs.gitlab.com/ee/api/repositories.html#generate-changelog-data for +# more information. +categories: + added: Added + fixed: Fixed + changed: Changed + deprecated: Deprecated + removed: Removed + security: Security + performance: Performance + other: Other +template: | + {% if categories %} + {% each categories %} + ### {{ title }} ({% if single_change %}1 change{% else %}{{ count }} changes{% end %}) + + {% each entries %} + - [{{ title }}]({{ commit.reference }})\ + {% if author.contributor %} by {{ author.reference }}{% end %}\ + {% if commit.trailers.MR %}\ + ([merge request]({{ commit.trailers.MR }}))\ + {% else %}\ + {% if merge_request %}\ + ([merge request]({{ merge_request.reference }}))\ + {% end %}\ + {% end %}\ + {% if commit.trailers.EE %}\ + **GitLab Enterprise Edition**\ + {% end %} + + {% end %} + + {% end %} + {% else %} + No changes. + {% end %} |