Merge PR #4902: Changelog Flow Updates

This commit is contained in:
Alexander Bezobchuk
2019-08-13 16:00:28 -04:00
committed by GitHub
parent f90d969ded
commit 7d42f62f90
46 changed files with 158 additions and 135 deletions
+15
View File
@@ -0,0 +1,15 @@
import fileinput
import re
# This script goes through the provided file, and replaces any " \#<number>",
# with the valid mark down formatted link to it. e.g.
# " [\#number](https://github.com/cosmos/cosmos-sdk/issues/<number>)
# Note that if the number is for a PR, github will auto-redirect you when you click the link.
# It is safe to run the script multiple times in succession.
#
# Example:
#
# $ python ./scripts/linkify_changelog.py CHANGELOG.md
for line in fileinput.input(inplace=1):
line = re.sub(r"\s\\#([0-9]+)", r" [\\#\1](https://github.com/cosmos/cosmos-sdk/issues/\1)", line.rstrip())
print(line)