volam2 / support-tools

Automatically exported from code.google.com/p/support-tools
Apache License 2.0
1 stars 0 forks source link

GitHub issue exporter should rewrite comment text to mention new issue IDs #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Google Code issue IDs do not match the ones on GitHub post-export (since 
pull requests share an ID namespace). Issue text should be rewritten to 
correctly mention the GitHub issue IDs, instead of the old GitHub ones.

Regular expression to detect issue references.

Used to auto-link to other issues when displaying issue details.

Matches "issue " when "issue" is not part of a larger word, or

"issue #", or just a "#" when it is preceeded by a space.

ISSUE_REF_RE = re.compile(r""" (?P\b(issue|bug)\s*) (?P\s+[-a-z0-9]+[:#])? (?P#?) (?P\d+)\b""", re.IGNORECASE | re.MULTILINE | re.VERBOSE)

Original issue reported on code.google.com by chrsm...@google.com on 4 Jun 2015 at 3:47

GoogleCodeExporter commented 9 years ago
This is now fixed if you:

1. Export the issues.
2. Export the issues again with the --rewrite_comments flag.

Original comment by chrsm...@google.com on 5 Jun 2015 at 7:00