Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bostsnow opened this issue May 14, 2023 · 1 comment

Comments

@bostsnow
Copy link

bostsnow commented May 14, 2023

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.

@bitwiseman
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants