github-api
github-api copied to clipboard
Enhancement: support GitHub API to `rerun-failed-jobs`
When looking at GHWorkflowRun, there is the method rerun() but no method to rerun only failed tests.
It's documented in the API here: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-failed-jobs-from-a-workflow-run
This has been added to the octokit client in June 15, see https://github.com/octokit/plugin-rest-endpoint-methods.js/releases/tag/v5.14.0
It would be great to have this in the Java API as well.
Thanks!