13
13
/**
14
14
* Helper class for interacting with the GitHub API.
15
15
*
16
- * @since __DEPLOY_VERSION__
16
+ * @since 3.0.0
17
17
*/
18
18
class GitHub
19
19
{
20
20
/**
21
21
* Options for the connector.
22
22
*
23
23
* @var Registry
24
- * @since __DEPLOY_VERSION__
24
+ * @since 3.0.0
25
25
*/
26
26
protected $ options ;
27
27
28
28
/**
29
29
* The HTTP client object to use in sending HTTP requests.
30
30
*
31
31
* @var \JHttp
32
- * @since __DEPLOY_VERSION__
32
+ * @since 3.0.0
33
33
*/
34
34
protected $ client ;
35
35
@@ -39,7 +39,7 @@ class GitHub
39
39
* @param Registry $options Connector options.
40
40
* @param \JHttp $client The HTTP client object.
41
41
*
42
- * @since __DEPLOY_VERSION__
42
+ * @since 3.0.0
43
43
*/
44
44
public function __construct (Registry $ options = null , \JHttp $ client = null )
45
45
{
@@ -59,7 +59,7 @@ public function __construct(Registry $options = null, \JHttp $client = null)
59
59
*
60
60
* @return string The request URL.
61
61
*
62
- * @since __DEPLOY_VERSION__
62
+ * @since 3.0.0
63
63
*/
64
64
protected function fetchUrl ($ path , $ page = 0 , $ limit = 0 )
65
65
{
@@ -105,7 +105,7 @@ protected function fetchUrl($path, $page = 0, $limit = 0)
105
105
*
106
106
* @return \JHttp
107
107
*
108
- * @since __DEPLOY_VERSION__
108
+ * @since 3.0.0
109
109
*/
110
110
public function getClient ()
111
111
{
@@ -121,7 +121,7 @@ public function getClient()
121
121
*
122
122
* @return \JHttpResponse
123
123
*
124
- * @since __DEPLOY_VERSION__
124
+ * @since 3.0.0
125
125
*/
126
126
public function getDiffForPullRequest ($ user , $ repo , $ pullId )
127
127
{
@@ -146,7 +146,7 @@ public function getDiffForPullRequest($user, $repo, $pullId)
146
146
*
147
147
* @return \JHttpResponse
148
148
*
149
- * @since __DEPLOY_VERSION__
149
+ * @since 3.0.0
150
150
*/
151
151
public function getFileContents ($ user , $ repo , $ path , $ ref = null )
152
152
{
@@ -174,7 +174,7 @@ public function getFileContents($user, $repo, $path, $ref = null)
174
174
*
175
175
* @return \JHttpResponse
176
176
*
177
- * @since __DEPLOY_VERSION__
177
+ * @since 3.0.0
178
178
*/
179
179
public function getFilesForPullRequest ($ user , $ repo , $ pullId )
180
180
{
@@ -196,7 +196,7 @@ public function getFilesForPullRequest($user, $repo, $pullId)
196
196
*
197
197
* @return \JHttpResponse
198
198
*
199
- * @since __DEPLOY_VERSION__
199
+ * @since 3.0.0
200
200
*/
201
201
public function getOpenIssues ($ user , $ repo , $ page = 0 , $ limit = 0 )
202
202
{
@@ -213,7 +213,7 @@ public function getOpenIssues($user, $repo, $page = 0, $limit = 0)
213
213
*
214
214
* @return mixed The option value.
215
215
*
216
- * @since __DEPLOY_VERSION__
216
+ * @since 3.0.0
217
217
*/
218
218
public function getOption ($ key , $ default = null )
219
219
{
@@ -229,7 +229,7 @@ public function getOption($key, $default = null)
229
229
*
230
230
* @return \JHttpResponse
231
231
*
232
- * @since __DEPLOY_VERSION__
232
+ * @since 3.0.0
233
233
*/
234
234
public function getPullRequest ($ user , $ repo , $ pullId )
235
235
{
@@ -246,7 +246,7 @@ public function getPullRequest($user, $repo, $pullId)
246
246
*
247
247
* @return \JHttpResponse
248
248
*
249
- * @since __DEPLOY_VERSION__
249
+ * @since 3.0.0
250
250
*/
251
251
public function getRateLimit ()
252
252
{
@@ -263,7 +263,7 @@ public function getRateLimit()
263
263
*
264
264
* @return \JHttpResponse
265
265
*
266
- * @since __DEPLOY_VERSION__
266
+ * @since 3.0.0
267
267
* @throws Exception\UnexpectedResponse
268
268
*/
269
269
protected function processResponse (\JHttpResponse $ response , $ expectedCode = 200 )
@@ -293,7 +293,7 @@ protected function processResponse(\JHttpResponse $response, $expectedCode = 200
293
293
*
294
294
* @return array Associative array containing the prepared URL and request headers
295
295
*
296
- * @since __DEPLOY_VERSION__
296
+ * @since 3.0.0
297
297
*/
298
298
protected function prepareRequest ($ path , $ page = 0 , $ limit = 0 , array $ headers = array ())
299
299
{
@@ -315,7 +315,7 @@ protected function prepareRequest($path, $page = 0, $limit = 0, array $headers =
315
315
*
316
316
* @return $this
317
317
*
318
- * @since __DEPLOY_VERSION__
318
+ * @since 3.0.0
319
319
*/
320
320
public function setOption ($ key , $ value )
321
321
{
0 commit comments