Skip to content

Add GitHub webhook handling to fast-track controller application reprocessing#160

Merged
jessesuen merged 2 commits intoargoproj:masterfrom
jessesuen:webhook
May 5, 2018
Merged

Add GitHub webhook handling to fast-track controller application reprocessing#160
jessesuen merged 2 commits intoargoproj:masterfrom
jessesuen:webhook

Conversation

@jessesuen
Copy link
Copy Markdown
Member

This resolves issue #121.

An new endpoint in the API server /api/webhook is introduced, which receives a GitHub Push Event. Upon receipt, it queries all applications, and matches any that are of the same repo and revision. If the application matches, it sets an annotation in the application (with current timestamp) so that the controller is woken up for reprocessing of the app. Special logic exists to handle the case where the target is HEAD.

@jessesuen jessesuen requested review from alexmt and merenbach May 4, 2018 10:23
@jessesuen
Copy link
Copy Markdown
Member Author

NOTE: I will be working on clean up and adding unit tests, but wanted to get the review started. I did end-to-end testing by pushing to a github test repo configured with a webhook pointing to my API server (over ngrok)

@jessesuen jessesuen force-pushed the webhook branch 2 times, most recently from 409abb3 to 1509629 Compare May 4, 2018 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants