Re-running Checks Programmatically
joedimarzio opened this issue · 1 comments
Hello,
I am using this plugin and have no trouble re-running a check through the "Rerun" button that's found on the GitHub API. However, I've attempted to do this programmatically via the Octokit APIs by sending a request like so:
const response = await octokit.checks.rerequestSuite({
owner: org,
repo: repoName,
check_suite_id: suite.id
});
where suite.id
is the value for this plugin. This returns a 201 response and the status is changed to queued
. From there, nothing changes in the GitHub checks UI and the status is never changed to in_progress
or similar. Is this not supported, or is this a configuration issue on our end? We have the app set up with events for check_suite
and check_run
.
Any help is appreciated!
Thanks,
Joe
It's not supported since we even don't know there is a programmatical way to trigger the re-run. Good to know that, I'll read the Octokit API docs to see if it fits our plugin.
Sorry for being late!