github-api
github-api copied to clipboard
createCommitStatus method return status success but the update is not happening in GITHUB
Description We are using the version 1.307 and we call the createCommitStatus like below.
GHRepository repository = gitHub.getRepository(
SLASH_JOINER.join(request.getOrg(), request.getRepo())
);
String headSha = repository
.getPullRequest(request.getPullNumber())
.getHead()
.getSha();
GHCommitStatus commitStatus = repository.createCommitStatus(
headSha,
GHCommitState.SUCCESS,
someUrl,
someDescription,
context()
);
The response commitStatus status is 'SUCCESS' but Github is still not updated. What really can go wrong here ?
Note: Its not consistent, out of 10 call, 1 update is not happening.
Additional Detail On each commit we re-evaluate the logic and call the createCommitStatus.
Is the update actually never happening, or is if you check again a couple seconds later has the update gone through? It is possible this is call the case some delay before the result change is visible?