Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to relaunch GitHub check without pushing new commits?

I'm currently using GitHub with a basic Jenkins integration (with the GitHub plugin): each time I push something, my Jenkins tests are triggered and the status is reported to GitHub.

For some dirty reasons (and I know the root cause is here), my tests could randomly fail and then report a failed status to GitHub (which blocked the possibility to merge the PR: and that's the expected behavior).

Do you know if it's possible to relaunch the tests without pushing a new commit? Because I know if I relaunch the tests, they will pass.

like image 952
Labynocle Avatar asked Sep 19 '18 14:09

Labynocle


People also ask

How do I rerun a GitHub check?

At the top of the drop-down menu, click Pull Requests. In the list of pull requests, click the pull request you want to view. Click on the pull request number, to the right of the pull request branch name. To re-run failed checks, click Re-run and select Re-run Failed Checks.

How do I rerun a pull request?

If changes have been made to a pull request that has already been reviewed, you can now re-request a review with a single click in the pull request's sidebar. This will notify the requested reviewers that changes have been made.

What is GitHub status checks?

Status checks let you know if your commits meet the conditions set for the repository you're contributing to. Status checks are based on external processes, such as continuous integration builds, which run for each push you make to a repository.


1 Answers

Update: you can also push an empty commit to your branch to re-trigger status checks: git commit -m "retrigger checks" --allow-empty and then git push <branchname>

You can do this by closing and then re-opening the Pull Request. This will cause all status checks to run again on the same commit.

like image 168
Adil B Avatar answered Sep 24 '22 19:09

Adil B