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

Enable creation and retrieval of org webhooks #192

Merged
merged 1 commit into from
Jul 17, 2015
Merged

Enable creation and retrieval of org webhooks #192

merged 1 commit into from
Jul 17, 2015

Conversation

chrisrhut
Copy link

made GHHook abstract and created two concrete subclasses for org
and repo hooks. Created utility class GHHooks to manage creation
and retrieval of org/repo hooks with minimal code duplication. These
are invoked by GHOrganization and GHRepository respectively.

Additional info on org webhooks here: https://developer.github.com/v3/orgs/hooks/

Note: requires #189 to test creation of org/repo hooks

made GHHook abstract and created two concrete subclasses for org
and repo hooks. Created utility class GHHooks to manage creation
and retrieval of org/repo hooks with minimal code duplication. These
are invoked by GHOrganization and GHRepository respectively.
@buildhive
Copy link

Kohsuke Kawaguchi » github-api #343 SUCCESS
This pull request looks good
(what's this?)

@@ -57,14 +57,14 @@
private int watchers,forks,open_issues,size,network_count,subscribers_count;
private String pushed_at;
private Map<Integer,GHMilestone> milestones = new HashMap<Integer, GHMilestone>();

Copy link
Collaborator

Choose a reason for hiding this comment

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

please avoid such empty-line changes

@oleg-nenashev
Copy link
Collaborator

I like the idea with the helper class BTW

@kohsuke kohsuke merged commit f4b105b into hub4j:master Jul 17, 2015
kohsuke added a commit that referenced this pull request Jul 17, 2015
Changing GHHook to abstract is a binary incompatible change in theory,
but given the way this class is designed it is difficult to imagine
any client code instantiating this class.

So I think it is OK.
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.

4 participants