##// END OF EJS Templates
pull requeset: use #pr and title in comment notifications
Mads Kiilerich -
r3250:e7daa6a7 beta
parent child Browse files
Show More
@@ -92,7 +92,6 b' class ChangesetCommentsModel(BaseModel):'
92 elif pull_request:
92 elif pull_request:
93 pull_request = self.__get_pull_request(pull_request)
93 pull_request = self.__get_pull_request(pull_request)
94 comment.pull_request = pull_request
94 comment.pull_request = pull_request
95 desc = pull_request.pull_request_id
96 else:
95 else:
97 raise Exception('Please specify revision or pull_request_id')
96 raise Exception('Please specify revision or pull_request_id')
98
97
@@ -138,8 +137,11 b' class ChangesetCommentsModel(BaseModel):'
138 qualified=True,
137 qualified=True,
139 )
138 )
140 subj = safe_unicode(
139 subj = safe_unicode(
141 h.link_to('Re pull request: %(desc)s %(line)s' % \
140 h.link_to('Re pull request #%(pr_id)s: %(desc)s %(line)s' % \
142 {'desc': desc, 'line': line}, _url)
141 {'desc': comment.pull_request.title,
142 'pr_id': comment.pull_request.pull_request_id,
143 'line': line},
144 _url)
143 )
145 )
144
146
145 notification_type = Notification.TYPE_PULL_REQUEST_COMMENT
147 notification_type = Notification.TYPE_PULL_REQUEST_COMMENT
General Comments 0
You need to be logged in to leave comments. Login now