github-api icon indicating copy to clipboard operation
github-api copied to clipboard

createCommitStatus method return status success but the update is not happening in GITHUB

Open bostsnow opened this issue 2 years ago • 1 comments

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.

bostsnow avatar May 14 '23 01:05 bostsnow

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?

bitwiseman avatar Jun 30 '23 19:06 bitwiseman