-
Notifications
You must be signed in to change notification settings - Fork 11
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
Only Run Jobs for Repos which have Passed Checks #417
Comments
This is a great idea, but I think we also need an escape hatch (possibly only available to users with sufficient privileges) |
I think we'd a need a warning deprecation period for |
I've done a quick spike on this. Getting the list of checks for a given repo and branch (which we have easy access to in the WorkspaceDetail view) is nice and easy via this url Where this gets trickier is how we check that
The only reference to the check for that repo is I suspect that's not a huge problem as this check (geddit) will end up being a warning on the WorkspaceDetail page but wanted to flag it all the same. |
Using the GitHub Checks API we can check the actions for a repo have run successfully. We should gate the creation of a JobRequest on those checks being successful so they can check incorrect config before we take up the job-runner's time/resources.
A check on page load with UI linking to where the User can see the source output (probably the Actions tab for the repo) can alert the User to why the form isn't submittable. Reloading the page should be ok as a way to pick up changes from GitHub.
The text was updated successfully, but these errors were encountered: