@@ 26-33 (lines=8) @@ | ||
23 | }); |
|
24 | } |
|
25 | ||
26 | public function job(int $id): PromiseInterface |
|
27 | { |
|
28 | return $this->getTransport()->request( |
|
29 | 'jobs/' . $id |
|
30 | )->then(function ($response) { |
|
31 | return resolve($this->getTransport()->getHydrator()->hydrate('Job', $response['job'])); |
|
32 | }); |
|
33 | } |
|
34 | } |
|
35 |
@@ 26-33 (lines=8) @@ | ||
23 | }); |
|
24 | } |
|
25 | ||
26 | public function build(int $id): PromiseInterface |
|
27 | { |
|
28 | return $this->getTransport()->request( |
|
29 | 'repos/' . $this->slug() . '/builds/' . $id |
|
30 | )->then(function ($response) { |
|
31 | return resolve($this->getTransport()->getHydrator()->hydrate('Build', $response['build'])); |
|
32 | }); |
|
33 | } |
|
34 | ||
35 | public function commits(): ObservableInterface |
|
36 | { |