@@ -313,7 +313,7 @@ class Repository extends Requestable {
313
313
* @param {string } parent - the SHA of the parent commit
314
314
* @param {string } tree - the SHA of the tree for this commit
315
315
* @param {string } message - the commit message
316
- * @param {Function } cb - will receive the commit that is created
316
+ * @param {Requestable.callback } cb - will receive the commit that is created
317
317
* @return {Promise } - the promise for the http request
318
318
*/
319
319
commit ( parent , tree , message , cb ) {
@@ -336,7 +336,7 @@ class Repository extends Requestable {
336
336
* @param {string } ref - the ref to update
337
337
* @param {string } commitSHA - the SHA to point the reference to
338
338
* @param {boolean } force - indicates whether to force or ensure a fast-forward update
339
- * @param {Function } cb - will receive the updated ref back
339
+ * @param {Requestable.callback } cb - will receive the updated ref back
340
340
* @return {Promise } - the promise for the http request
341
341
*/
342
342
updateHead ( ref , commitSHA , force , cb ) {
@@ -349,7 +349,7 @@ class Repository extends Requestable {
349
349
/**
350
350
* Get information about the repository
351
351
* @see https://developer.github.com/v3/repos/#get
352
- * @param {Function } cb - will receive the information about the repository
352
+ * @param {Requestable.callback } cb - will receive the information about the repository
353
353
* @return {Promise } - the promise for the http request
354
354
*/
355
355
getDetails ( cb ) {
@@ -359,7 +359,7 @@ class Repository extends Requestable {
359
359
/**
360
360
* List the contributors to the repository
361
361
* @see https://developer.github.com/v3/repos/#list-contributors
362
- * @param {Function } cb - will receive the list of contributors
362
+ * @param {Requestable.callback } cb - will receive the list of contributors
363
363
* @return {Promise } - the promise for the http request
364
364
*/
365
365
getContributors ( cb ) {
@@ -370,7 +370,7 @@ class Repository extends Requestable {
370
370
* List the users who are collaborators on the repository. The currently authenticated user must have
371
371
* push access to use this method
372
372
* @see https://developer.github.com/v3/repos/collaborators/#list-collaborators
373
- * @param {Function } cb - will receive the list of collaborators
373
+ * @param {Requestable.callback } cb - will receive the list of collaborators
374
374
* @return {Promise } - the promise for the http request
375
375
*/
376
376
getCollaborators ( cb ) {
@@ -381,7 +381,7 @@ class Repository extends Requestable {
381
381
* Check if a user is a collaborator on the repository
382
382
* @see https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
383
383
* @param {string } username - the user to check
384
- * @param {Function } cb - will receive true if the user is a collaborator and false if they are not
384
+ * @param {Requestable.callback } cb - will receive true if the user is a collaborator and false if they are not
385
385
* @return {Promise } - the promise for the http request {Boolean} [description]
386
386
*/
387
387
isCollaborator ( username , cb ) {
@@ -394,7 +394,7 @@ class Repository extends Requestable {
394
394
* @param {string } ref - the ref to check
395
395
* @param {string } path - the path containing the content to fetch
396
396
* @param {boolean } raw - `true` if the results should be returned raw instead of GitHub's normalized format
397
- * @param {Function } cb - will receive the fetched data
397
+ * @param {Requestable.callback } cb - will receive the fetched data
398
398
* @return {Promise } - the promise for the http request
399
399
*/
400
400
getContents ( ref , path , raw , cb ) {
@@ -409,7 +409,7 @@ class Repository extends Requestable {
409
409
* @see https://developer.github.com/v3/repos/contents/#get-the-readme
410
410
* @param {string } ref - the ref to check
411
411
* @param {boolean } raw - `true` if the results should be returned raw instead of GitHub's normalized format
412
- * @param {Function } cb - will receive the fetched data
412
+ * @param {Requestable.callback } cb - will receive the fetched data
413
413
* @return {Promise } - the promise for the http request
414
414
*/
415
415
getReadme ( ref , raw , cb ) {
@@ -421,7 +421,7 @@ class Repository extends Requestable {
421
421
/**
422
422
* Fork a repository
423
423
* @see https://developer.github.com/v3/repos/forks/#create-a-fork
424
- * @param {Function } cb - will receive the information about the newly created fork
424
+ * @param {Requestable.callback } cb - will receive the information about the newly created fork
425
425
* @return {Promise } - the promise for the http request
426
426
*/
427
427
fork ( cb ) {
@@ -431,7 +431,7 @@ class Repository extends Requestable {
431
431
/**
432
432
* List a repository's forks
433
433
* @see https://developer.github.com/v3/repos/forks/#list-forks
434
- * @param {Function } cb - will receive the list of repositories forked from this one
434
+ * @param {Requestable.callback } cb - will receive the list of repositories forked from this one
435
435
* @return {Promise } - the promise for the http request
436
436
*/
437
437
listForks ( cb ) {
@@ -442,7 +442,7 @@ class Repository extends Requestable {
442
442
* Create a new branch from an existing branch.
443
443
* @param {string } [oldBranch=master] - the name of the existing branch
444
444
* @param {string } newBranch - the name of the new branch
445
- * @param {Function } cb - will receive the commit data for the head of the new branch
445
+ * @param {Requestable.callback } cb - will receive the commit data for the head of the new branch
446
446
* @return {Promise } - the promise for the http request
447
447
*/
448
448
createBranch ( oldBranch , newBranch , cb ) {
@@ -466,7 +466,7 @@ class Repository extends Requestable {
466
466
* Create a new pull request
467
467
* @see https://developer.github.com/v3/pulls/#create-a-pull-request
468
468
* @param {Object } options - the pull request description
469
- * @param {Function } cb - will receive the new pull request
469
+ * @param {Requestable.callback } cb - will receive the new pull request
470
470
* @return {Promise } - the promise for the http request
471
471
*/
472
472
createPullRequest ( options , cb ) {
@@ -476,7 +476,7 @@ class Repository extends Requestable {
476
476
/**
477
477
* List the hooks for the repository
478
478
* @see https://developer.github.com/v3/repos/hooks/#list-hooks
479
- * @param {Function } cb - will receive the list of hooks
479
+ * @param {Requestable.callback } cb - will receive the list of hooks
480
480
* @return {Promise } - the promise for the http request
481
481
*/
482
482
listHooks ( cb ) {
@@ -487,7 +487,7 @@ class Repository extends Requestable {
487
487
* Get a hook for the repository
488
488
* @see https://developer.github.com/v3/repos/hooks/#get-single-hook
489
489
* @param {number } id - the id of the webook
490
- * @param {Function } cb - will receive the details of the webook
490
+ * @param {Requestable.callback } cb - will receive the details of the webook
491
491
* @return {Promise } - the promise for the http request
492
492
*/
493
493
getHook ( id , cb ) {
@@ -498,7 +498,7 @@ class Repository extends Requestable {
498
498
* Add a new hook to the repository
499
499
* @see https://developer.github.com/v3/repos/hooks/#create-a-hook
500
500
* @param {Object } options - the configuration describing the new hook
501
- * @param {Function } cb - will receive the new webhook
501
+ * @param {Requestable.callback } cb - will receive the new webhook
502
502
* @return {Promise } - the promise for the http request
503
503
*/
504
504
createHook ( options , cb ) {
@@ -510,7 +510,7 @@ class Repository extends Requestable {
510
510
* @see https://developer.github.com/v3/repos/hooks/#edit-a-hook
511
511
* @param {number } id - the id of the webhook
512
512
* @param {Object } options - the new description of the webhook
513
- * @param {Function } cb - will receive the updated webhook
513
+ * @param {Requestable.callback } cb - will receive the updated webhook
514
514
* @return {Promise } - the promise for the http request
515
515
*/
516
516
updateHook ( id , options , cb ) {
@@ -521,7 +521,7 @@ class Repository extends Requestable {
521
521
* Delete a webhook
522
522
* @see https://developer.github.com/v3/repos/hooks/#delete-a-hook
523
523
* @param {number } id - the id of the webhook to be deleted
524
- * @param {Function } cb - will receive true if the call is successful
524
+ * @param {Requestable.callback } cb - will receive true if the call is successful
525
525
* @return {Promise } - the promise for the http request
526
526
*/
527
527
deleteHook ( id , cb ) {
@@ -533,7 +533,7 @@ class Repository extends Requestable {
533
533
* @see https://developer.github.com/v3/repos/contents/#delete-a-file
534
534
* @param {string } branch - the branch to delete from, or the default branch if not specified
535
535
* @param {string } path - the path of the file to remove
536
- * @param {Function } cb - will receive the commit in which the delete occurred
536
+ * @param {Requestable.callback } cb - will receive the commit in which the delete occurred
537
537
* @return {Promise } - the promise for the http request
538
538
*/
539
539
deleteFile ( branch , path , cb ) {
@@ -553,7 +553,7 @@ class Repository extends Requestable {
553
553
* @param {string } branch - the branch to carry out the reference change, or the default branch if not specified
554
554
* @param {string } oldPath - original path
555
555
* @param {string } newPath - new reference path
556
- * @param {Function } cb - will receive the commit in which the move occurred
556
+ * @param {Requestable.callback } cb - will receive the commit in which the move occurred
557
557
* @return {Promise } - the promise for the http request
558
558
*/
559
559
move ( branch , oldPath , newPath , cb ) {
@@ -588,7 +588,7 @@ class Repository extends Requestable {
588
588
* @param {Object } [options.author] - the author of the commit
589
589
* @param {Object } [options.commiter] - the committer
590
590
* @param {boolean } [options.encode] - true if the content should be base64 encoded
591
- * @param {Function } cb - will receive the new commit
591
+ * @param {Requestable.callback } cb - will receive the new commit
592
592
* @return {Promise } - the promise for the http request
593
593
*/
594
594
writeFile ( branch , path , content , message , options , cb ) {
0 commit comments