jsjolen / smallest-java-ci

CI that we made for edu. purposes.
0 stars 0 forks source link

Git Clone + Checkout functionality on server #12

Closed modnikhil closed 5 years ago

modnikhil commented 5 years ago

When our server receives a POST request from a GitHub webhook, our serve should pull the newest updates from the remote repository, and checkout the branch which had changes made to it. Both repo name and commit SHA should be visible in the webhook payload

jsjolen commented 5 years ago

Branch name isn't necessary, use the SHA-1 hash instead (you can checkout that). It's true that you'll need the repo URL though :-). Look into a previous issue to see links to the documentation regarding that.

modnikhil commented 5 years ago

Yes! Thanks for clarifying, I'll update the issue. Realized that when I reviewed the PullRequestEvent PR.

jsjolen commented 5 years ago

You can look at GradleComm to see how to do communication.