Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e3d6e08

Browse filesBrowse files
author
Surya Gaddipati
committed
Preserve api compatablity with previous version.
Support adding commitstatus without context.
1 parent 16a6623 commit e3d6e08
Copy full SHA for e3d6e08

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

‎src/main/java/org/kohsuke/github/GHRepository.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ public GHCommitStatus getLastCommitStatus(String sha1) throws IOException {
658658
* Optional parameter that points to the URL that has more details.
659659
* @param description
660660
* Optional short description.
661+
* @param context
662+
* Optinal commit status context.
661663
*/
662664
public GHCommitStatus createCommitStatus(String sha1, GHCommitState state, String targetUrl, String description, String context) throws IOException {
663665
return new Requester(root)
@@ -667,6 +669,13 @@ public GHCommitStatus createCommitStatus(String sha1, GHCommitState state, Strin
667669
.with("context", context)
668670
.to(String.format("/repos/%s/%s/statuses/%s",owner.login,this.name,sha1),GHCommitStatus.class).wrapUp(root);
669671
}
672+
673+
/**
674+
* @see {@link #createCommitStatus(String, GHCommitState,String,String,String) createCommitStatus}
675+
*/
676+
public GHCommitStatus createCommitStatus(String sha1, GHCommitState state, String targetUrl, String description) throws IOException {
677+
return createCommitStatus(sha1, state, targetUrl, description,null);
678+
}
670679

671680
/**
672681
* Lists repository events.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.