apache / lucene-jira-archive

Jira archive for Apache Lucene
https://lucene.apache.org/
2 stars 6 forks source link

Replace LUCENE issue links (URLs like https://issues.apache.org/jira/browse/LUCENE-XXXX) with GitHub mentions #NN #132

Closed mocobeta closed 2 years ago

mocobeta commented 2 years ago

Spin-off from #129.

There could be multiple URLs that point to one issue. I suppose this regex would work?

https?://issues\.apache\.org/jira/.+/LUCENE-\d+
mocobeta commented 2 years ago

I just did a quick-check with grep command.

Estimated # of issues that contain urls to LUCENE issues.

$ cat github-import-data/*.json | jq '.issue.body' | grep -E ' https?://issues\.apache\.org/jira/.+/LUCENE-[0-9]+ ' | wc -l
15

Estimated # of comments that contain urls to LUCENE issues.

$ cat github-import-data/*.json | jq '.comments[].body' | grep -E ' https?://issues\.apache\.org/jira/.+/LUCENE-[0-9]+ ' | wc -l
55

The number is relatively small as expected since Jira users usually use just short keys like LUCENE-XXXX to refer to another issue.