# HG changeset patch # User Mads Kiilerich # Date 1588453322 -7200 # Node ID f7307da42abaf67f3d3e90fa46b02cd07112668f # Parent fa373bf186b29edf9023bdb36d8b3f2d99dec716 issue: log error if still using issue_pat_XXX configuration after it was removed in d24051ce961c Show a helpful: found unsupported issue_prefix_pr = 'PR' - use issue_sub_pr instead before bailing out with: skipping incomplete issue pattern 'issue_pat_pr': '(?:PR\\s*)(\\d+)' -> 'https://kallithea-scm.org/repos/kallithea/pull-request/{id}' None diff -r fa373bf186b2 -r f7307da42aba kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py Mon Apr 13 22:49:07 2020 +0200 +++ b/kallithea/lib/helpers.py Sat May 02 23:02:02 2020 +0200 @@ -1191,6 +1191,9 @@ issue_pat = CONFIG.get(k) issue_server_link = CONFIG.get('issue_server_link%s' % suffix) issue_sub = CONFIG.get('issue_sub%s' % suffix) + issue_prefix = CONFIG.get('issue_prefix%s' % suffix) + if issue_prefix: + log.error('found unsupported issue_prefix%s = %r - use issue_sub%s instead', suffix, issue_prefix, suffix) if not issue_pat or not issue_server_link or issue_sub is None: # issue_sub can be empty but should be present log.error('skipping incomplete issue pattern %r: %r -> %r %r', suffix, issue_pat, issue_server_link, issue_sub) continue