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 07:49:42 UTC
[lucene-jira-archive] branch replace-jira-url-gh-issue-number created (now 0723bdfe)
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a change to branch replace-jira-url-gh-issue-number
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git
at 0723bdfe replace lucene jira url with github issue number
This branch includes the following new commits:
new 0723bdfe replace lucene jira url with github issue number
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[lucene-jira-archive] 01/01: replace lucene jira url with github issue number
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch replace-jira-url-gh-issue-number
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git
commit 0723bdfe01df5a12809998eb24af33d4c407b42a
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Sun Aug 7 16:49:34 2022 +0900
replace lucene jira url with github issue number
---
migration/src/jira_util.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/migration/src/jira_util.py b/migration/src/jira_util.py
index deb36e78..2cf3213e 100644
--- a/migration/src/jira_util.py
+++ b/migration/src/jira_util.py
@@ -336,6 +336,8 @@ def embed_gh_issue_link(text: str, issue_id_map: dict[str, int], gh_number_self:
text = re.sub(r"(\s)(LUCENE-\d+)([\s,;:\?\!\.])", repl_simple, text)
text = re.sub(r"(^)(LUCENE-\d+)([\s,;:\?\!\.])", repl_simple, text)
+ text = re.sub(r"(\s)https?://issues\.apache\.org/.+/(LUCENE-\d+)([\s,;:\?\!\.])", repl_simple, text)
+ text = re.sub(r"(^)https?://issues\.apache\.org/.+/(LUCENE-\d+)([\s,;:\?\!\.])", repl_simple, text)
text = re.sub(r"(\()(LUCENE-\d+)(\))", repl_paren, text)
text = re.sub(r"(\[)(LUCENE-\d+)(\])(?!\()", repl_bracket, text)
text = re.sub(r"\[(LUCENE-\d+)\]\(https?[^\)]+LUCENE-\d+\)", repl_md_link, text)