File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
main/java/com/spotify/github/v3/repos
java/com/spotify/github/v3/repos
resources/com/spotify/github/v3/repos Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,18 @@ public interface RepositoryBase extends UpdateTracking {
79
79
@ Nullable
80
80
URI htmlUrl ();
81
81
82
+ /** Allow squash merges */
83
+ @ Nullable
84
+ Boolean allowSquashMerge ();
85
+
86
+ /** Allow merge commits */
87
+ @ Nullable
88
+ Boolean allowMergeCommit ();
89
+
90
+ /** Allow rebase merges */
91
+ @ Nullable
92
+ Boolean allowRebaseMerge ();
93
+
82
94
/** Archive URL template */
83
95
@ Nullable
84
96
String archiveUrl ();
Original file line number Diff line number Diff line change @@ -50,5 +50,8 @@ public void testDeserialization() throws IOException {
50
50
assertThat (repository .fullName (), is (repository .owner ().login () + "/Hello-World" ));
51
51
assertThat (repository .isPrivate (), is (false ));
52
52
assertThat (repository .isArchived (), is (false ));
53
+ assertThat (repository .allowMergeCommit (), is (false ));
54
+ assertThat (repository .allowRebaseMerge (), is (true ));
55
+ assertThat (repository .allowSquashMerge (), is (true ));
53
56
}
54
57
}
Original file line number Diff line number Diff line change 81
81
"forks" : 2 ,
82
82
"has_pages" : false ,
83
83
"has_downloads" : true ,
84
+ "allow_squash_merge" : true ,
85
+ "allow_merge_commit" : false ,
86
+ "allow_rebase_merge" : true ,
84
87
"pushed_at" : " 2011-01-26T19:06:43Z" ,
85
88
"created_at" : " 2011-01-26T19:01:12Z" ,
86
89
"updated_at" : " 2011-01-26T19:14:43Z" ,
You can’t perform that action at this time.
0 commit comments