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

Retry failed deploys #5

Open
zpnk opened this issue Nov 15, 2016 · 0 comments
Open

Retry failed deploys #5

zpnk opened this issue Nov 15, 2016 · 0 comments

Comments

@zpnk
Copy link
Owner

zpnk commented Nov 15, 2016

It would be nice to allow the user to trigger a retry of a failed deploy.

I would imagine this implemented as a url that gets set as the target_url on the GitHub error status, with a description of, "Deploy failed, please try" or similar.

To trigger a deploy, we need information about the repo, as well as branch data (ref/sha). This info is included the the initial GitHub pull request event. But it seems we could fetch this data as needed through the GitHub pull request endpoint.

So we could have an endpoint like /retry?repo=zpnk/hello-world&pr=20 that gets set as the GH status in event of an error. This endpoint would get the necessary repo/git info from the GH PR api and retry the deploy.

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

1 participant