Expose GitHub Webhook Events, and Status Message API
G
Gregory Westneat
Currently, CircleCI has the ability to build an app on the creation of a PR from a GitHub, and, as part of the build, can be directed to execute scripting that deploy builds to some platform service, like AWS.
However, there doesn’t seem to be a way to execute scripts when a PR is merged/closed. It would be incredibly useful if CircleCI could expose that (and perhaps other) webhook(s), and allow for, scripting to run after a PR branch has been closed/merged, for example to clean up a temporary deploy to a platform, such as AWS.
By way of example of the feature set I’m describing, here’s a link to Heroku’s Review Apps feature. Certainly it’s true that Heroku has a different business domain, where they are a fully fledged platform, however the feature hinges on GitHub API, for which there could be many pipeline related use cases, making it more relevant to CircleCI.
To better illustrate the virtues of the use case I am eager to solve, temporary PR deploys are valuable in order to manually confirm PR change-sets, especially where QA of frontend applications is concerned: “Does this style change work responsively?” “How does it affect “x” feature, under “y” circumstances?”
One peripheral aspect of this would be messaging a status back to the PR, with a link to the deploy. I can appreciate that the latitudes for this are something that would represent another feature enhancement to the CircleCI API, of a similar magnitude.
Realted feature requests, both about exposing GitHub webhooks / custom status messages generally, and about merge actions specifically are pretty numerouse accross the CircleCI Discuss forum. I think there’s also an argument to be made to enrich integrations with services (klike AWS and GitHub) that represent a dominant market share in their respective domains. This all amounts to a compelling argument that there is demand for this feature-set, and that it relates to a multitude of use cases. Hope you’ll consider it!
Many thanks for your continued committment to the community, and for the really awesome product!
CCI-I-177
Merged in a post:
Trigger workflow when PR is closed
N
Nkennedy
We deploy to our k8s cluster, in a new namespace, every time we get a new PR. It is pretty cool, but there is no simple way of doing something when a PR is closed. Right now we clean them up manually, but are planning a service that does this with a github webhook.
CCI-I-413
H
Hadas Go
+100
T
Timothy Clarke
The looks to be related to https://ideas.circleci.com/ideas/CCI-I-177
F
Francis Francis
This would be a huge improvement for our workflow.With all the CircleCI improvements around AWS/Cloud Provider support for cleaning up CI manages stacks is exceedingly necessary.
L
Lauren Biggers
It would be nice to turn off expensive tests on GitHub Draft Pull Requests.
D
Daniel Whitston
We're planning to move to per-branch builds, and the ability to tear down those builds when the branch gets deleted is vital. We may implement this with a separate GitHub hook to an AWS lambda as a workaround, but it's an indicator that maybe CircleCI isn't something we should be using for deployment.
A
Andrej Novikov
This is a necessity and a current blocker for me in using circle.
J
Jimmy Shimizu
Came here for the same reason, I want to tear down infrastructure related to a PR demo, without manually doing it. CircleCI is already acting on deleted branched/PRs for other purposes, would be nice if it could be used as a trigger.
a
amaury ravanel
+1
O
Owen Matsuda
+1
Load More
→