~zyga/tarmac/git-support

« back to all changes in this revision

Viewing changes to tarmac/plugins/commitmessage.py

  • Committer: Tarmac Traffic Controller
  • Author(s): Rodney Dawes
  • Date: 2014-02-20 20:40:35 UTC
  • mfrom: (427.1.1 merge-web-link)
  • Revision ID: tarmac_traffic_controller-20140220204035-4nrox8da9dk7c127
Use proposal.web_link directly instead of a regex.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
'''Tarmac plugin for enforcing a commit message format.'''
18
18
from tarmac.hooks import tarmac_hooks
19
19
from tarmac.plugins import TarmacPlugin
20
 
from tarmac.utility import get_review_url
21
20
 
22
21
 
23
22
class CommitMessageTemplate(TarmacPlugin):
110
109
 
111
110
    @property
112
111
    def review_url(self):
113
 
        return get_review_url(self._proposal)
 
112
        return self._proposal.web_link
114
113
 
115
114
 
116
115
tarmac_hooks['tarmac_pre_commit'].hook(CommitMessageTemplate(),