Skip to content

Commit dbb90ff

Browse files
authored
Update check ID type (#120)
* update check id type in updateCheckRun method * update tests
1 parent 9a4b09f commit dbb90ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/spotify/github/v3/clients/ChecksClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public CompletableFuture<CheckRunResponse> createCheckRun(final CheckRunRequest
8484
* @return the completable future
8585
*/
8686
public CompletableFuture<CheckRunResponse> updateCheckRun(
87-
final int id, final CheckRunRequest checkRun) {
87+
final long id, final CheckRunRequest checkRun) {
8888
final String path = String.format(GET_CHECK_RUN_URI, owner, repo, id);
8989
return github.patch(
9090
path, github.json().toJsonUnchecked(checkRun), CheckRunResponse.class, extraHeaders);

src/test/java/com/spotify/github/v3/clients/GitHubAuthTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void assertChecksApiContainsCorrectHeader() throws Exception {
186186
mockServer.enqueue(validTokenResponse);
187187
mockServer.enqueue(checkRunResponse);
188188

189-
checksClient.updateCheckRun(12, null).join();
189+
checksClient.updateCheckRun(12L, null).join();
190190
assertThat(mockServer.getRequestCount(), is(2));
191191

192192
assertThat(mockServer.takeRequest().getPath(), is("/app/installations/1/access_tokens"));

0 commit comments

Comments
 (0)