-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add installation hook #9
base: master
Are you sure you want to change the base?
Conversation
91011d4
to
01470a8
Compare
@@ -21,6 +23,13 @@ func init() { | |||
twitterClient, twitterClientInitErr = twitter.NewClient() | |||
} | |||
|
|||
// func main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this could be removed?
Hi @alexellis thanks for all the feedback you have provided so far. I hope you don't mind reviewing the PR for me. Thanks |
// deprecated and replaced by installation and installation_repositories. But github is still sending integration_installation and | ||
// integration_installation_repositories and go-github don't understand these. | ||
|
||
switch t { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about removal events? (are they correctly ignored?)
This code should be a function and tested 👍
w.Write([]byte("OK")) | ||
} | ||
|
||
func handleIssuesEvent(o *github.IssuesEvent) []string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a test for this?
thanks for review Alex. I will hold on this one until I add atleast few basic tests. sometime today/tomorrow. |
This PR will make sure we can handle installation and installation_repositories event too. and tweet a welcome msg for the new onboarded projects.