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

Add installation hook #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add installation hook #9

wants to merge 2 commits into from

Conversation

rajatjindal
Copy link
Owner

This PR will make sure we can handle installation and installation_repositories event too. and tweet a welcome msg for the new onboarded projects.

@@ -21,6 +23,13 @@ func init() {
twitterClient, twitterClientInitErr = twitter.NewClient()
}

// func main() {
Copy link
Collaborator

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?

@rajatjindal
Copy link
Owner Author

Hi @alexellis

thanks for all the feedback you have provided so far. I hope you don't mind reviewing the PR for me.

Thanks
Rajat Jindal

// 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 {
Copy link
Collaborator

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 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rajatjindal
Copy link
Owner Author

thanks for review Alex. I will hold on this one until I add atleast few basic tests. sometime today/tomorrow.

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.

2 participants