From f97a498cee4818da68dc1c1dac3215f2e5f25311 Mon Sep 17 00:00:00 2001 From: Tess Rinearson Date: Thu, 19 Nov 2020 14:23:08 +0100 Subject: [PATCH] scripts: make linkifier default to 'pull' rather than 'issue' (#5689) --- scripts/linkify_changelog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/linkify_changelog.py b/scripts/linkify_changelog.py index 16647c05f..bc446c769 100644 --- a/scripts/linkify_changelog.py +++ b/scripts/linkify_changelog.py @@ -3,11 +3,11 @@ import re # This script goes through the provided file, and replaces any " \#", # with the valid mark down formatted link to it. e.g. -# " [\#number](https://github.com/tendermint/tendermint/issues/) -# Note that if the number is for a PR, github will auto-redirect you when you click the link. +# " [\#number](https://github.com/tendermint/tendermint/pull/) +# Note that if the number is for a an issue, github will auto-redirect you when you click the link. # It is safe to run the script multiple times in succession. # # Example usage $ python3 linkify_changelog.py ../CHANGELOG_PENDING.md for line in fileinput.input(inplace=1): - line = re.sub(r"\s\\#([0-9]*)", r" [\\#\1](https://github.com/tendermint/tendermint/issues/\1)", line.rstrip()) + line = re.sub(r"\s\\#([0-9]*)", r" [\\#\1](https://github.com/tendermint/tendermint/pull/\1)", line.rstrip()) print(line) \ No newline at end of file