mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 13:54:29 +00:00
@cosmetic Added release changelog config.
This commit is contained in:
parent
9dd0a1d7ea
commit
111ed93853
2 changed files with 26 additions and 5 deletions
|
@ -151,7 +151,7 @@ subject_process = (strip |
|
||||||
ReSub(r'^([cC]hang(ed?)?)(\s?:?\s)(.*)$', r'\4') |
|
ReSub(r'^([cC]hang(ed?)?)(\s?:?\s)(.*)$', r'\4') |
|
||||||
ReSub(r'^([fF]ix(ed?)?)(\s?:?\s)(.*)$', r'\4') |
|
ReSub(r'^([fF]ix(ed?)?)(\s?:?\s)(.*)$', r'\4') |
|
||||||
ReSub(r'^([uU]pdat(ed?)?)(\s?:?\s)(.*)$', r'\4') |
|
ReSub(r'^([uU]pdat(ed?)?)(\s?:?\s)(.*)$', r'\4') |
|
||||||
ReSub(r'#(\d{3,4})', r'<a href="https://github.com/Radarr/Radarr/issues/\1>\1</a>') |
|
ReSub(r'#(\d{3,4})', r'<a href="https://github.com/Radarr/Radarr/issues/\1">\1</a>') |
|
||||||
SetIfEmpty("No commit message.") | ucfirst | final_dot)
|
SetIfEmpty("No commit message.") | ucfirst | final_dot)
|
||||||
|
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ unreleased_version_label = "(unreleased)"
|
||||||
##
|
##
|
||||||
#output_engine = rest_py
|
#output_engine = rest_py
|
||||||
#output_engine = mustache("restructuredtext")
|
#output_engine = mustache("restructuredtext")
|
||||||
output_engine = mustache("changelog.tpl")
|
output_engine = mustache("changelog_release.tpl")
|
||||||
#output_engine = makotemplate("restructuredtext")
|
#output_engine = makotemplate("restructuredtext")
|
||||||
|
|
||||||
|
|
||||||
|
@ -254,14 +254,14 @@ include_merge = False
|
||||||
# r'/(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n/',
|
# r'/(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n/',
|
||||||
# idx=lambda m: m.start(1)
|
# idx=lambda m: m.start(1)
|
||||||
# )
|
# )
|
||||||
#publish = stdout
|
publish = stdout
|
||||||
|
|
||||||
def write_to_file(content):
|
def write_to_file(content):
|
||||||
with open("CHANGELOG.md", "w+") as f:
|
with open("CHANGELOG.md", "w+") as f:
|
||||||
for chunk in content:
|
for chunk in content:
|
||||||
f.write(chunk)
|
f.write(chunk)
|
||||||
|
|
||||||
publish = write_to_file
|
#publish = write_to_file
|
||||||
|
|
||||||
|
|
||||||
## ``revs`` is a list of callable or a list of string
|
## ``revs`` is a list of callable or a list of string
|
||||||
|
@ -302,4 +302,10 @@ publish = write_to_file
|
||||||
# r"(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n")),
|
# r"(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n")),
|
||||||
# "HEAD"
|
# "HEAD"
|
||||||
#]
|
#]
|
||||||
revs = []
|
# Gets the latest annoted tag and uses that as a base for new changes.
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
proc = subprocess.Popen(["git", "describe", "--abbrev=0", "--tags"], stdout=subprocess.PIPE)
|
||||||
|
out = str(proc.communicate()[0].strip(), "utf-8")
|
||||||
|
revs = [out+"..."]
|
||||||
|
|
15
changelog_release.tpl
Normal file
15
changelog_release.tpl
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
**To receive further Pre-Release updates, please change the branch to develop. (Settings -> General (Show Advanced Settings) -> Updates -> Branch)**
|
||||||
|
|
||||||
|
{{#versions}}
|
||||||
|
|
||||||
|
{{#sections}}
|
||||||
|
{{{label}}}
|
||||||
|
{{#commits}}
|
||||||
|
- {{{subject}}} [<a href="https://github.com/{{{author}}}">{{{author}}}</a>]
|
||||||
|
{{/commits}}
|
||||||
|
|
||||||
|
{{/sections}}
|
||||||
|
|
||||||
|
{{/versions}}
|
||||||
|
|
||||||
|
**Note**: The OSX version does not automatically launch the browser. You have to go to http://localhost:7878 by yourself in a browser of your choice.
|
Loading…
Reference in a new issue