Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwinvaneyk2014-11-01 13:23:54 +0000
committerMatthias Sohn2015-03-04 23:10:31 +0000
commiteb83c17e47247e19c41aaba497f4c91d6e2a96c5 (patch)
tree0028d982ff3335d70c33b4fec3ded79712459fd9 /org.eclipse.egit.github.core
parentd379923cbc1effe0f1b5ebdd2f51d7aad866d5be (diff)
downloadegit-github-eb83c17e47247e19c41aaba497f4c91d6e2a96c5.tar.gz
egit-github-eb83c17e47247e19c41aaba497f4c91d6e2a96c5.tar.xz
egit-github-eb83c17e47247e19c41aaba497f4c91d6e2a96c5.zip
Add context support in CommitService.createStatus()
- Relevant page in the API: https://developer.github.com/v3/repos/statuses/ - Added tests for context-field of CommitStatus Change-Id: Ia8520191115469017d38597676e960303a6c31c3 Signed-off-by: erwinvaneyk <erwinvaneyk@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.github.core')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/CommitService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/CommitService.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/CommitService.java
index 7e39d5c3..75fb5ec8 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/CommitService.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/CommitService.java
@@ -417,6 +417,8 @@ public class CommitService extends GitHubService {
params.put("target_url", status.getTargetUrl());
if (status.getDescription() != null)
params.put("description", status.getDescription());
+ if (status.getContext() != null)
+ params.put("context", status.getContext());
StringBuilder uri = new StringBuilder(SEGMENT_REPOS);
uri.append('/').append(id);
@@ -482,4 +484,4 @@ public class CommitService extends GitHubService {
}.getType());
return createPageIterator(request);
}
-}
+} \ No newline at end of file

Back to the top