Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit a30c78c

Browse files
committed
restored backward compatibility in the public API
1 parent 58143c2 commit a30c78c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ public class GHDeploymentBuilder {
88
private final GHRepository repo;
99
private final Requester builder;
1010

11-
public GHDeploymentBuilder(GHRepository repo, String ref) {
11+
public GHDeploymentBuilder(GHRepository repo) {
1212
this.repo = repo;
1313
this.builder = new Requester(repo.root);
14+
}
15+
16+
public GHDeploymentBuilder(GHRepository repo, String ref) {
17+
this(repo);
1418
ref(ref);
1519
}
1620

0 commit comments

Comments
 (0)