Merge "Do not automatically add author/committer as reviewer to drafts"
This commit is contained in:
@@ -124,14 +124,14 @@ public class ApprovalsUtil {
|
|||||||
Account.Id authorId = info.getAuthor() != null
|
Account.Id authorId = info.getAuthor() != null
|
||||||
? info.getAuthor().getAccount()
|
? info.getAuthor().getAccount()
|
||||||
: null;
|
: null;
|
||||||
if (authorId != null) {
|
if (authorId != null && !ps.isDraft()) {
|
||||||
need.add(authorId);
|
need.add(authorId);
|
||||||
}
|
}
|
||||||
|
|
||||||
Account.Id committerId = info.getCommitter() != null
|
Account.Id committerId = info.getCommitter() != null
|
||||||
? info.getCommitter().getAccount()
|
? info.getCommitter().getAccount()
|
||||||
: null;
|
: null;
|
||||||
if (committerId != null) {
|
if (committerId != null && !ps.isDraft()) {
|
||||||
need.add(committerId);
|
need.add(committerId);
|
||||||
}
|
}
|
||||||
need.remove(change.getOwner());
|
need.remove(change.getOwner());
|
||||||
|
|||||||
Reference in New Issue
Block a user