Skip to content

Commit bee3d6f

Browse files
authored
Merge pull request #35 from cortexapps/fix-bug-on-create-repo
Fix bug when creating repo with non-default visibility
2 parents 1d290fb + 4a51345 commit bee3d6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.kohsuke</groupId>
44
<artifactId>cortexapps-github-api</artifactId>
5-
<version>1.327</version>
5+
<version>1.328</version>
66
<name>GitHub API for Java</name>
77
<url>https://github-api.kohsuke.org/</url>
88
<description>GitHub API for Java</description>

src/main/java/org/kohsuke/github/GHRepositoryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public S private_(boolean enabled) throws IOException {
167167
*/
168168
public S visibility(final Visibility visibility) throws IOException {
169169
requester.withPreview(NEBULA);
170-
return with("visibility", visibility);
170+
return with("visibility", visibility.toString());
171171
}
172172

173173
/**

0 commit comments

Comments
 (0)