##// END OF EJS Templates
always post text about status changes of code-review
marcink -
r2796:bf3c976d beta
parent child Browse files
Show More
@@ -4,7 +4,8 b''
4 Changelog
4 Changelog
5 =========
5 =========
6
6
7 1.4.0 (**2012-XX-XX**)
7
8 1.4.1 (**2012-XX-XX**)
8 ----------------------
9 ----------------------
9
10
10 :status: in-progress
11 :status: in-progress
@@ -12,6 +13,21 b' 1.4.0 (**2012-XX-XX**)'
12
13
13 news
14 news
14 ++++
15 ++++
16
17 - always put a comment about code-review status change even if user send
18 empty data
19
20 fixes
21 +++++
22
23 - fixed migrations of permissions that can lead to inconsistency issue
24
25
26 1.4.0 (**2012-09-03**)
27 ----------------------
28
29 news
30 ++++
15
31
16 - new codereview system
32 - new codereview system
17 - email map, allowing users to have multiple email addresses mapped into
33 - email map, allowing users to have multiple email addresses mapped into
@@ -376,9 +376,13 b' class ChangesetController(BaseRepoContro'
376 def comment(self, repo_name, revision):
376 def comment(self, repo_name, revision):
377 status = request.POST.get('changeset_status')
377 status = request.POST.get('changeset_status')
378 change_status = request.POST.get('change_changeset_status')
378 change_status = request.POST.get('change_changeset_status')
379 text = request.POST.get('text')
380 if status and change_status:
381 text = text or (_('Status change -> %s')
382 % ChangesetStatus.get_status_lbl(status))
379
383
380 comm = ChangesetCommentsModel().create(
384 comm = ChangesetCommentsModel().create(
381 text=request.POST.get('text'),
385 text=text,
382 repo=c.rhodecode_db_repo.repo_id,
386 repo=c.rhodecode_db_repo.repo_id,
383 user=c.rhodecode_user.user_id,
387 user=c.rhodecode_user.user_id,
384 revision=revision,
388 revision=revision,
@@ -339,9 +339,12 b' class PullrequestsController(BaseRepoCon'
339
339
340 status = request.POST.get('changeset_status')
340 status = request.POST.get('changeset_status')
341 change_status = request.POST.get('change_changeset_status')
341 change_status = request.POST.get('change_changeset_status')
342
342 text = request.POST.get('text')
343 if status and change_status:
344 text = text or (_('Status change -> %s')
345 % ChangesetStatus.get_status_lbl(status))
343 comm = ChangesetCommentsModel().create(
346 comm = ChangesetCommentsModel().create(
344 text=request.POST.get('text'),
347 text=text,
345 repo=c.rhodecode_db_repo.repo_id,
348 repo=c.rhodecode_db_repo.repo_id,
346 user=c.rhodecode_user.user_id,
349 user=c.rhodecode_user.user_id,
347 pull_request=pull_request_id,
350 pull_request=pull_request_id,
General Comments 0
You need to be logged in to leave comments. Login now