Remove drafts related code
Change-Id: I02e79ac125c68e7ab5cdda6be2e34f687f2d4983
diff --git a/src/main/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreator.java b/src/main/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreator.java
index 65b65c8..d03c744 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreator.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/automerger/DownstreamCreator.java
@@ -555,11 +555,6 @@
private void automergeChanges(ChangeInfo change, RevisionInfo revisionInfo)
throws RestApiException, IOException, ConfigInvalidException, InvalidQueryParameterException,
OrmException {
- if (revisionInfo.draft != null && revisionInfo.draft) {
- log.debug("Patchset {} is draft change, ignoring.", revisionInfo.commit.commit);
- return;
- }
-
String currentRevision = revisionInfo.commit.commit;
log.debug(
"Handling patchsetevent with change id {} and revision {}", change.id, currentRevision);
diff --git a/src/main/resources/Documentation/about.md b/src/main/resources/Documentation/about.md
index dc9aa32..13f69f8 100644
--- a/src/main/resources/Documentation/about.md
+++ b/src/main/resources/Documentation/about.md
@@ -6,8 +6,6 @@
conflicting merge, it will vote -1 on a configurable label
and provide instructions to resolving the merge conflict.
-Draft changes will be ignored until published.
-
The plugin will put all the auto-created changes in the
same topic as the original change (or create a topic if
none exists). If a user updates the topic, it will update
@@ -18,4 +16,4 @@
A UI button "Recreate automerges" has been added so that users can skip
downstream merges. Unchecking a branch's checkbox will skip that branch and
-all automerges downstream of that branch.
\ No newline at end of file
+all automerges downstream of that branch.