Skip to content

Commit e16c596

Browse files
augigmessner
authored andcommitted
chmod commit action (#293)
Added support for the chmod commit action.
1 parent 31cd97f commit e16c596

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/main/java/org/gitlab4j/api/models/CommitAction.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class CommitAction {
1010

1111
public enum Action {
1212

13-
CREATE, DELETE, MOVE, UPDATE;
13+
CREATE, DELETE, MOVE, UPDATE, CHMOD;
1414

1515
private static JacksonJsonEnumHelper<Action> enumHelper = new JacksonJsonEnumHelper<>(Action.class);
1616

@@ -58,6 +58,7 @@ public String toString() {
5858
private String content;
5959
private Encoding encoding;
6060
private String lastCommitId;
61+
private Boolean executeFilemode;
6162

6263
public Action getAction() {
6364
return action;
@@ -137,6 +138,19 @@ public CommitAction withLastCommitId(String lastCommitId) {
137138
return this;
138139
}
139140

141+
public Boolean getExecuteFilemode() {
142+
return executeFilemode;
143+
}
144+
145+
public void setExecuteFilemode(Boolean executeFilemode) {
146+
this.executeFilemode = executeFilemode;
147+
}
148+
149+
public CommitAction withExecuteFilemode(Boolean executeFilemode) {
150+
this.executeFilemode = executeFilemode;
151+
return this;
152+
}
153+
140154
@Override
141155
public String toString() {
142156
return (JacksonJson.toJsonString(this));

0 commit comments

Comments
 (0)