You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2022/08/07 10:50:04 UTC
[lucene-jira-archive] branch main updated: refine comment format for Jira
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git
The following commit(s) were added to refs/heads/main by this push:
new 3ad68da3 refine comment format for Jira
3ad68da3 is described below
commit 3ad68da3d1f04fab55c8496f7cd004b1e9d73d9c
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Sun Aug 7 19:49:55 2022 +0900
refine comment format for Jira
---
migration/src/add_comments_jira_issues.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/migration/src/add_comments_jira_issues.py b/migration/src/add_comments_jira_issues.py
index d8ac4226..e0fde819 100644
--- a/migration/src/add_comments_jira_issues.py
+++ b/migration/src/add_comments_jira_issues.py
@@ -41,7 +41,8 @@ def __add_comment(token: str, issue_id: str, comment: str, logger: Logger) -> bo
@retry_upto(3, 1.0, logger)
def add_moved_to_comment(token: str, issue_id: str, github_url: str) -> bool:
- comment = f"""[TEST] This was moved to GitHub issue: {github_url}."""
+ gh_issue_number = github_url.rsplit("/", 1)[1]
+ comment = f"""[TEST] This was moved to GitHub issue: [#{gh_issue_number}|{github_url}]."""
res = __add_comment(token, issue_id, comment, logger)
if res:
logger.debug(f"Added a comment to {issue_id}")