Skip to content

Webhooks #20

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

Merged
merged 15 commits into from
Feb 13, 2018
Merged

Webhooks #20

merged 15 commits into from
Feb 13, 2018

Conversation

WyriHaximus
Copy link
Member

@WyriHaximus WyriHaximus commented Jun 18, 2017

  • List: repository hooks
  • List: organization hooks
  • Add: repository hook
  • Add: organization hook
  • Delete a hook
  • Ping a hook

{
public function refresh(): WebHook
{
return $this->wait($this->handleCommand(new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this))->then(function (WebHookInterface $webHook) {

Choose a reason for hiding this comment

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

Line exceeds 120 characters; contains 151 characters

{
public function refresh(): Config
{
return $this->wait($this->handleCommand(new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this))->then(function (ConfigInterface $config) {

Choose a reason for hiding this comment

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

Line exceeds 120 characters; contains 149 characters

$resource = $this->prophesize(ResourceInterface::class)->reveal();

$service = $this->prophesize(IteratePagesService::class);
$service->iterate('prefix/foo/bar/hooks')->shouldBeCalled()->willReturn(Observable::fromArray([[['php-api-clients']]]));

Choose a reason for hiding this comment

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

Line exceeds 120 characters; contains 128 characters

$service->iterate('prefix/foo/bar/hooks')->shouldBeCalled()->willReturn(Observable::fromArray([[['php-api-clients']]]));

$hydrator = $this->prophesize(Hydrator::class);
$hydrator->hydrate(WebHookInterface::HYDRATE_CLASS, ['php-api-clients'])->shouldBeCalled()->willReturn($resource);

Choose a reason for hiding this comment

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

Line exceeds 120 characters; contains 122 characters

@WyriHaximus WyriHaximus merged commit 685152e into master Feb 13, 2018
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