From 008863aeb91a5c5fb0c5af822387c6137c75b434 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 10 Oct 2020 18:55:45 +0300 Subject: [PATCH] release-on-comment: add "Closes " to release PR --- scripts/release-on-comment.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/release-on-comment.py b/scripts/release-on-comment.py index e2ddbe1ca..44431a4fc 100644 --- a/scripts/release-on-comment.py +++ b/scripts/release-on-comment.py @@ -57,6 +57,8 @@ Created automatically from {comment_url}. Once all builds pass and it has been **approved** by one or more maintainers, the build can be released by pushing a tag `{version}` to this repository. + +Closes #{issue_number}. """ @@ -164,7 +166,9 @@ def trigger_release(payload_path: Path, token: str) -> None: print(f"Branch {Fore.CYAN}{release_branch}{Fore.RESET} pushed.") body = PR_BODY.format( - comment_url=get_comment_data(payload)["html_url"], version=version + comment_url=get_comment_data(payload)["html_url"], + version=version, + issue_number=issue_number, ) pr = repo.create_pull( f"Prepare release {version}",