From 59cd46988074a6796988dba7971e8746ce3cfb79 Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Thu, 18 Jul 2019 12:41:43 +0200 Subject: [PATCH] [WEBSITE-634] - Add Release Drafter configuration for drafting Weekly release YAMLs (#4097) * [WEBSITE-634] - Add Release Drafter configurationfor drafting Weekly release YAMLs * Release Drafter: add a disclaimer about the draft status --- .github/release-drafter.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000000..60c4140141 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,36 @@ +# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter +name-template: $NEXT_PATCH_VERSION +# Uses a more common 2-digit versioning in Jenkins weekly releases. +version-template: $MAJOR.$MINOR +tag-template: jenkins-$NEXT_MINOR_VERSION + +# TODO: categories are YAGNI for now, until we can extract `type` somehow +exclude-labels: + - reverted + - no-changelog + - skip-changelog + - invalid +change-template: |- + - type: todo + message: |- + $TITLE + pull: $NUMBER + authors: + - $AUTHOR +template: | + **Disclaimer**: This is an automatically generated changelog draft for Jenkins weekly releases. + See https://jenkins.io/changelog/ for the official changelogs. + + ```yaml + $CHANGES + ``` +replacers: + - search: '/\[*JENKINS-(\d+)\]*\s*-*\s*/g' + replace: |- + issue: $1 + message: |- + + - search: |- + message: |- + issue: + replace: "issue:"