Skip to content

Enable creation and retrieval of org webhooks#192

Merged
kohsuke merged 1 commit into
hub4j:masterfrom
sourceclear:master
Jul 17, 2015
Merged

Enable creation and retrieval of org webhooks#192
kohsuke merged 1 commit into
hub4j:masterfrom
sourceclear:master

Conversation

@chrisrhut
Copy link
Copy Markdown

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
Copy Markdown

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

Copy link
Copy Markdown
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
Copy Markdown
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