Unverified Commit c978de0b authored by Savici, Andrei T's avatar Savici, Andrei T Committed by GitHub
Browse files

Merge pull request #32528 from peterfpeterson/milestone_url

Fix formatting of milestone link
parents 3186aebb ad5e16c7
...@@ -91,6 +91,6 @@ For a full list of all issues addressed during this release please see the `GitH ...@@ -91,6 +91,6 @@ For a full list of all issues addressed during this release please see the `GitH
.. _forum: https://forum.mantidproject.org .. _forum: https://forum.mantidproject.org
.. _GitHub milestone: https://github.com/mantidproject/mantid/pulls?utf8=%E2%9C%93&q=is%3Apr+milestone%3A"Release Release 6.0"+is%3Amerged .. _GitHub milestone: https://github.com/mantidproject/mantid/pulls?utf8=%E2%9C%93&q=is%3Apr+milestone%3A%22Release+6.0%22+is%3Amerged
.. _GitHub release page: https://github.com/mantidproject/mantid/releases/tag/v6.0.0 .. _GitHub release page: https://github.com/mantidproject/mantid/releases/tag/v6.0.0
...@@ -80,6 +80,6 @@ For a full list of all issues addressed during this release please see the `GitH ...@@ -80,6 +80,6 @@ For a full list of all issues addressed during this release please see the `GitH
.. _forum: https://forum.mantidproject.org .. _forum: https://forum.mantidproject.org
.. _GitHub milestone: https://github.com/mantidproject/mantid/pulls?utf8=%E2%9C%93&q=is%3Apr+milestone%3A"Release 6.2"+is%3Amerged .. _GitHub milestone: https://github.com/mantidproject/mantid/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Amerged+milestone%3A%22Release+6.2%22
.. _GitHub release page: https://github.com/mantidproject/mantid/releases/tag/v6.2.0 .. _GitHub release page: https://github.com/mantidproject/mantid/releases/tag/v6.2.0
...@@ -91,7 +91,7 @@ For a full list of all issues addressed during this release please see the `GitH ...@@ -91,7 +91,7 @@ For a full list of all issues addressed during this release please see the `GitH
.. _forum: https://forum.mantidproject.org .. _forum: https://forum.mantidproject.org
.. _GitHub milestone: https://github.com/mantidproject/mantid/pulls?utf8=%E2%9C%93&q=is%3Apr+milestone%3A"{sanitized_milestone}"+is%3Amerged .. _GitHub milestone: {milestone_link}
.. _GitHub release page: https://github.com/mantidproject/mantid/releases/tag/v{version} .. _GitHub release page: https://github.com/mantidproject/mantid/releases/tag/v{version}
''', ''',
...@@ -256,7 +256,7 @@ def fixReleaseName(name): ...@@ -256,7 +256,7 @@ def fixReleaseName(name):
def toMilestoneName(version): def toMilestoneName(version):
version = version[1:].split('.') version = version[1:].split('.')
version = '"Release+{major}.{minor}"'.format(major=version[0], minor=version[1]) version = 'Release+{major}.{minor}'.format(major=version[0], minor=version[1])
return version return version
...@@ -295,7 +295,8 @@ if __name__ == '__main__': ...@@ -295,7 +295,8 @@ if __name__ == '__main__':
print('milestone:', args.milestone) print('milestone:', args.milestone)
release_root = getReleaseRoot() release_root = getReleaseRoot()
print(' root:', release_root) print(' root:', release_root)
milestone_link='https://github.com/mantidproject/mantid/pulls?utf8=%E2%9C%93&q=is%3Apr+' \
+ f'milestone%3A%22{sanitized_milestone}%22+is%3Amerged'
# add the new sub-site to the index # add the new sub-site to the index
addToReleaseList(release_root, args.release) addToReleaseList(release_root, args.release)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment