The mlbridge bot uses PR links in emails to identify which PR an email thread belongs to. This is then used to correctly post emails from the archive as comments on PRs. These links are rewritten to an openjdk style URL, for which we have a redirect to github, as a measure to stay provider independent:
github.com/openjdk -> git.openjdk.org
The URL matching logic knows about this rewrite and tries to reverse it before matching PR links. The problem is that before June 9, the rewritten URLs were git.openjdk.java.net. The current logic can't handle multiple different rewrite patterns, so any emails found with the old URL can't be matched correctly to PRs.
We need to make it possible to define multiple rewrite patterns or PR link patterns so that mlbridge can correctly match all emails in the mail archive history.
github.com/openjdk -> git.openjdk.org
The URL matching logic knows about this rewrite and tries to reverse it before matching PR links. The problem is that before June 9, the rewritten URLs were git.openjdk.java.net. The current logic can't handle multiple different rewrite patterns, so any emails found with the old URL can't be matched correctly to PRs.
We need to make it possible to define multiple rewrite patterns or PR link patterns so that mlbridge can correctly match all emails in the mail archive history.