mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
webhooks: Don't fail if there is no todo.sr.ht
This commit is contained in:
parent
ed74fc06c4
commit
34c5650cd8
|
@ -123,9 +123,12 @@ _ticket_url_re = re.compile(
|
|||
$
|
||||
""",
|
||||
re.VERBOSE,
|
||||
)
|
||||
) if _todosrht else None
|
||||
|
||||
def _handle_commit_trailer(trailer, value, pusher, repo, commit):
|
||||
if not _todosrht:
|
||||
return
|
||||
|
||||
if trailer == "Fixes":
|
||||
resolution = "fixed"
|
||||
elif trailer == "Implements":
|
||||
|
|
Loading…
Reference in New Issue