Loading src/main/resources/GitLab/Code/GitLabGroovy.xml +14 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. Loading Loading @@ -302,6 +303,19 @@ public class GitLabGroovy { clonedDoc.setVersion("1.1"); } // Update attachment dates for (xa in clonedDoc.getAttachmentList()) { debug("Checking attachment " + xa.getFilename()) if (defaultDate && defaultDate!="") { xa.setDate(defaultDate) } if (withFormat) { xa.setAuthor(DEFAULTAUTHOR); } else if (defaultUser && defaultUser!="") { xa.setAuthor(defaultUser); } } clonedDoc.setComment(""); clonedDoc.setMinorEdit(false); def c = clonedDoc.toXML(true, false, true, false, context.getContext()) Loading Loading
src/main/resources/GitLab/Code/GitLabGroovy.xml +14 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. Loading Loading @@ -302,6 +303,19 @@ public class GitLabGroovy { clonedDoc.setVersion("1.1"); } // Update attachment dates for (xa in clonedDoc.getAttachmentList()) { debug("Checking attachment " + xa.getFilename()) if (defaultDate && defaultDate!="") { xa.setDate(defaultDate) } if (withFormat) { xa.setAuthor(DEFAULTAUTHOR); } else if (defaultUser && defaultUser!="") { xa.setAuthor(defaultUser); } } clonedDoc.setComment(""); clonedDoc.setMinorEdit(false); def c = clonedDoc.toXML(true, false, true, false, context.getContext()) Loading