mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow refering to bugs without closing them in commit messages
This commit is contained in:
parent
8da42d6a70
commit
34d2b0a64f
@ -20,7 +20,7 @@ from lxml import html
|
|||||||
SENDMAIL = ('/home/kovid/work/env', 'pgp_mail')
|
SENDMAIL = ('/home/kovid/work/env', 'pgp_mail')
|
||||||
LAUNCHPAD_BUG = 'https://bugs.launchpad.net/calibre/+bug/%s'
|
LAUNCHPAD_BUG = 'https://bugs.launchpad.net/calibre/+bug/%s'
|
||||||
GITHUB_BUG = 'https://api.github.com/repos/kovidgoyal/calibre/issues/%s'
|
GITHUB_BUG = 'https://api.github.com/repos/kovidgoyal/calibre/issues/%s'
|
||||||
BUG_PAT = r'(Fix|Implement|Fixes|Fixed|Implemented)\s+#(\d+)'
|
BUG_PAT = r'(Fix|Implement|Fixes|Fixed|Implemented|See)\s+#(\d+)'
|
||||||
|
|
||||||
class Bug:
|
class Bug:
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ class Bug:
|
|||||||
summary = json.loads(urllib.urlopen(GITHUB_BUG % bug).read())['title']
|
summary = json.loads(urllib.urlopen(GITHUB_BUG % bug).read())['title']
|
||||||
if summary:
|
if summary:
|
||||||
print ('Working on bug:', summary)
|
print ('Working on bug:', summary)
|
||||||
if int(bug) > 100000:
|
if int(bug) > 100000 and action != 'See':
|
||||||
self.close_bug(bug, action)
|
self.close_bug(bug, action)
|
||||||
return match.group() + ' [%s](%s)' % (summary, LAUNCHPAD_BUG % bug)
|
return match.group() + ' [%s](%s)' % (summary, LAUNCHPAD_BUG % bug)
|
||||||
return match.group() + ' (%s)' % summary
|
return match.group() + ' (%s)' % summary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user