Merge lp:~craighewetson-deactivatedaccount/qbzr/jira_support into lp:qbzr
Proposed by
Craig Hewetson
Status: | Merged |
---|---|
Approved by: | Alexander Belchenko |
Approved revision: | 1505 |
Merged at revision: | 1503 |
Proposed branch: | lp:~craighewetson-deactivatedaccount/qbzr/jira_support |
Merge into: | lp:qbzr |
Diff against target: |
61 lines (+23/-0) 3 files modified
NEWS.txt (+1/-0) lib/bugs.py (+7/-0) lib/tests/test_bugs.py (+15/-0) |
To merge this branch: | bzr merge lp:~craighewetson-deactivatedaccount/qbzr/jira_support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexander Belchenko | Approve | ||
Craig Hewetson (community) | Needs Resubmitting | ||
Review via email:
|
Description of the change
Added a new regex matcher for jira bug urls.
To post a comment you must log in.
I wonder if prefix always abbreviation and suffix always number? If so, it would be better to change regexp a bit to match only letters (for prefix) and digits (for suffix), e.g.
_jira_bug_id_re = lazy_regex. lazy_compile( r'(?:.* /browse/ )([a-zA- Z]+-\d+ )($)')
or if prefix is always uppercased then
_jira_bug_id_re = lazy_regex. lazy_compile( r'(?:.* /browse/ )([A-Z] +-\d+)( $)')
What do you think? Is there any rules re jira abbreviations?