repository-provider 26.0.1 → 26.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +106 -78
- package/package.json +10 -7
- package/src/attribute.mjs +43 -18
- package/src/base-object.mjs +4 -0
- package/src/base-provider.mjs +17 -14
- package/src/branch.mjs +8 -4
- package/src/hook.mjs +1 -0
- package/src/multi-group-provider.mjs +6 -4
- package/src/named-object.mjs +1 -1
- package/src/pull-request.mjs +7 -3
- package/src/ref.mjs +12 -6
- package/src/repository-group.mjs +3 -2
- package/src/repository-owner.mjs +5 -4
- package/src/repository.mjs +20 -21
- package/src/single-group-provider.mjs +5 -3
- package/src/tag.mjs +3 -1
- package/src/util.mjs +6 -3
package/README.md
CHANGED
|
@@ -66,11 +66,13 @@ console.log(await readme.getString());
|
|
|
66
66
|
* [equals](#equals)
|
|
67
67
|
* [Parameters](#parameters-8)
|
|
68
68
|
* [attributes](#attributes)
|
|
69
|
+
* [writableAttributes](#writableattributes)
|
|
69
70
|
* [attributeMapping](#attributemapping)
|
|
70
71
|
* [description](#description)
|
|
71
72
|
* [id](#id)
|
|
72
73
|
* [uuid](#uuid)
|
|
73
74
|
* [avatarURL](#avatarurl)
|
|
75
|
+
* [homePageURL](#homepageurl)
|
|
74
76
|
* [MessageDestination](#messagedestination)
|
|
75
77
|
* [Parameters](#parameters-9)
|
|
76
78
|
* [BaseProvider](#baseprovider)
|
|
@@ -93,7 +95,7 @@ console.log(await readme.getString());
|
|
|
93
95
|
* [Parameters](#parameters-16)
|
|
94
96
|
* [projects](#projects)
|
|
95
97
|
* [Parameters](#parameters-17)
|
|
96
|
-
* [
|
|
98
|
+
* [milestones](#milestones)
|
|
97
99
|
* [Parameters](#parameters-18)
|
|
98
100
|
* [repositories](#repositories)
|
|
99
101
|
* [Parameters](#parameters-19)
|
|
@@ -136,6 +138,7 @@ console.log(await readme.getString());
|
|
|
136
138
|
* [Parameters](#parameters-28)
|
|
137
139
|
* [Properties](#properties-5)
|
|
138
140
|
* [url](#url-1)
|
|
141
|
+
* [refType](#reftype)
|
|
139
142
|
* [isDefault](#isdefault)
|
|
140
143
|
* [delete](#delete)
|
|
141
144
|
* [commit](#commit-2)
|
|
@@ -178,6 +181,7 @@ console.log(await readme.getString());
|
|
|
178
181
|
* [equals](#equals-3)
|
|
179
182
|
* [Parameters](#parameters-45)
|
|
180
183
|
* [displayName](#displayname)
|
|
184
|
+
* [update](#update)
|
|
181
185
|
* [toJSON](#tojson-2)
|
|
182
186
|
* [Project](#project)
|
|
183
187
|
* [Parameters](#parameters-46)
|
|
@@ -209,6 +213,8 @@ console.log(await readme.getString());
|
|
|
209
213
|
* [locked](#locked)
|
|
210
214
|
* [merged](#merged)
|
|
211
215
|
* [draft](#draft)
|
|
216
|
+
* [ContentEntry](#contententry)
|
|
217
|
+
* [Properties](#properties-9)
|
|
212
218
|
* [Ref](#ref)
|
|
213
219
|
* [Parameters](#parameters-52)
|
|
214
220
|
* [equals](#equals-5)
|
|
@@ -229,7 +235,7 @@ console.log(await readme.getString());
|
|
|
229
235
|
* [fullCondensedName](#fullcondensedname)
|
|
230
236
|
* [identifier](#identifier-1)
|
|
231
237
|
* [issuesURL](#issuesurl)
|
|
232
|
-
* [homePageURL](#homepageurl)
|
|
238
|
+
* [homePageURL](#homepageurl-1)
|
|
233
239
|
* [isLocked](#islocked)
|
|
234
240
|
* [isArchived](#isarchived)
|
|
235
241
|
* [isDisabled](#isdisabled)
|
|
@@ -239,7 +245,7 @@ console.log(await readme.getString());
|
|
|
239
245
|
* [isProtected](#isprotected-1)
|
|
240
246
|
* [RepositoryGroup](#repositorygroup-1)
|
|
241
247
|
* [Parameters](#parameters-58)
|
|
242
|
-
* [Properties](#properties-
|
|
248
|
+
* [Properties](#properties-10)
|
|
243
249
|
* [repositoryClass](#repositoryclass-1)
|
|
244
250
|
* [branchClass](#branchclass-1)
|
|
245
251
|
* [contentClass](#contentclass)
|
|
@@ -252,7 +258,7 @@ console.log(await readme.getString());
|
|
|
252
258
|
* [Parameters](#parameters-59)
|
|
253
259
|
* [Repository](#repository-2)
|
|
254
260
|
* [Parameters](#parameters-60)
|
|
255
|
-
* [Properties](#properties-
|
|
261
|
+
* [Properties](#properties-11)
|
|
256
262
|
* [fullName](#fullname-2)
|
|
257
263
|
* [slug](#slug)
|
|
258
264
|
* [provider](#provider-3)
|
|
@@ -269,13 +275,12 @@ console.log(await readme.getString());
|
|
|
269
275
|
* [url](#url-4)
|
|
270
276
|
* [cloneURL](#cloneurl)
|
|
271
277
|
* [issuesURL](#issuesurl-1)
|
|
272
|
-
* [homePageURL](#homepageurl-
|
|
278
|
+
* [homePageURL](#homepageurl-2)
|
|
273
279
|
* [condensedName](#condensedname)
|
|
274
280
|
* [isArchived](#isarchived-1)
|
|
275
281
|
* [isLocked](#islocked-1)
|
|
276
282
|
* [isDisabled](#isdisabled-1)
|
|
277
283
|
* [isTemplate](#istemplate)
|
|
278
|
-
* [update](#update)
|
|
279
284
|
* [branch](#branch-1)
|
|
280
285
|
* [Parameters](#parameters-65)
|
|
281
286
|
* [defaultBranch](#defaultbranch)
|
|
@@ -320,7 +325,6 @@ console.log(await readme.getString());
|
|
|
320
325
|
* [attributes](#attributes-2)
|
|
321
326
|
* [defaultBranchName](#defaultbranchname)
|
|
322
327
|
* [urls](#urls-1)
|
|
323
|
-
* [homePageURL](#homepageurl-2)
|
|
324
328
|
* [issuesURL](#issuesurl-2)
|
|
325
329
|
* [Review](#review)
|
|
326
330
|
* [SingleGroupProvider](#singlegroupprovider)
|
|
@@ -332,6 +336,7 @@ console.log(await readme.getString());
|
|
|
332
336
|
* [Parameters](#parameters-82)
|
|
333
337
|
* [Tag](#tag-1)
|
|
334
338
|
* [Parameters](#parameters-83)
|
|
339
|
+
* [refType](#reftype-1)
|
|
335
340
|
* [isWritable](#iswritable-1)
|
|
336
341
|
* [asArray](#asarray)
|
|
337
342
|
* [Parameters](#parameters-84)
|
|
@@ -361,6 +366,7 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
361
366
|
* `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
362
367
|
* `writable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
|
|
363
368
|
* `private` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
|
|
369
|
+
* `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
364
370
|
|
|
365
371
|
## definePropertiesFromOptions
|
|
366
372
|
|
|
@@ -423,7 +429,7 @@ In other words only produce key value pairs if value is defined.
|
|
|
423
429
|
|
|
424
430
|
* `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
425
431
|
* `initial` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{}`)
|
|
426
|
-
* `
|
|
432
|
+
* `attributes` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** to operator on (optional, default `object.constructor.attributes`)
|
|
427
433
|
|
|
428
434
|
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** initial + defined values
|
|
429
435
|
|
|
@@ -460,7 +466,7 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
460
466
|
### Parameters
|
|
461
467
|
|
|
462
468
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
463
|
-
* `additionalProperties`
|
|
469
|
+
* `additionalProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
464
470
|
|
|
465
471
|
### equals
|
|
466
472
|
|
|
@@ -474,7 +480,11 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
474
480
|
|
|
475
481
|
### attributes
|
|
476
482
|
|
|
477
|
-
|
|
483
|
+
Attributes definitions
|
|
484
|
+
|
|
485
|
+
### writableAttributes
|
|
486
|
+
|
|
487
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** writable attributes
|
|
478
488
|
|
|
479
489
|
### attributeMapping
|
|
480
490
|
|
|
@@ -506,6 +516,12 @@ Avatar.
|
|
|
506
516
|
|
|
507
517
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
508
518
|
|
|
519
|
+
## homePageURL
|
|
520
|
+
|
|
521
|
+
The url of home page.
|
|
522
|
+
|
|
523
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
524
|
+
|
|
509
525
|
## MessageDestination
|
|
510
526
|
|
|
511
527
|
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
@@ -550,7 +566,7 @@ Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Gl
|
|
|
550
566
|
|
|
551
567
|
### normalizeRepositoryName
|
|
552
568
|
|
|
553
|
-
Bring a repository name into its normal form by removing any clutter
|
|
569
|
+
Bring a repository name into its normal form by removing any clutter.
|
|
554
570
|
like .git suffix or #branch names.
|
|
555
571
|
|
|
556
572
|
#### Parameters
|
|
@@ -562,7 +578,7 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
562
578
|
|
|
563
579
|
### normalizeGroupName
|
|
564
580
|
|
|
565
|
-
Bring a group name into its normal form by removing any clutter
|
|
581
|
+
Bring a group name into its normal form by removing any clutter.
|
|
566
582
|
like .git suffix or #branch names.
|
|
567
583
|
|
|
568
584
|
#### Parameters
|
|
@@ -574,7 +590,7 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
574
590
|
|
|
575
591
|
### areRepositoryNamesCaseSensitive
|
|
576
592
|
|
|
577
|
-
Are
|
|
593
|
+
Are repository names case sensitive.
|
|
578
594
|
Overwrite and return false if you want to have case insensitive repository lookup
|
|
579
595
|
|
|
580
596
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true
|
|
@@ -625,9 +641,9 @@ List projects.
|
|
|
625
641
|
|
|
626
642
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
627
643
|
|
|
628
|
-
Returns **
|
|
644
|
+
Returns **AsyncIterator<[Project](#project)>** all matching projects of the provider
|
|
629
645
|
|
|
630
|
-
###
|
|
646
|
+
### milestones
|
|
631
647
|
|
|
632
648
|
List milestones.
|
|
633
649
|
|
|
@@ -635,7 +651,7 @@ List milestones.
|
|
|
635
651
|
|
|
636
652
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
637
653
|
|
|
638
|
-
Returns **
|
|
654
|
+
Returns **AsyncIterator<[Milestone](#milestone)>** all matching milestones of the provider
|
|
639
655
|
|
|
640
656
|
### repositories
|
|
641
657
|
|
|
@@ -645,7 +661,7 @@ List repositories.
|
|
|
645
661
|
|
|
646
662
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
647
663
|
|
|
648
|
-
Returns **
|
|
664
|
+
Returns **AsyncIterator<[Repository](#repository)>** all matching repos of the provider
|
|
649
665
|
|
|
650
666
|
### branches
|
|
651
667
|
|
|
@@ -655,7 +671,7 @@ List branches.
|
|
|
655
671
|
|
|
656
672
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
657
673
|
|
|
658
|
-
Returns **
|
|
674
|
+
Returns **AsyncIterator<[Branch](#branch)>** all matching branches of the provider
|
|
659
675
|
|
|
660
676
|
### tags
|
|
661
677
|
|
|
@@ -665,7 +681,7 @@ List tags.
|
|
|
665
681
|
|
|
666
682
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
667
683
|
|
|
668
|
-
Returns **
|
|
684
|
+
Returns **AsyncIterator<[Tag](#tag)>** all matching tags of the provider
|
|
669
685
|
|
|
670
686
|
### hooks
|
|
671
687
|
|
|
@@ -675,7 +691,7 @@ List hooks.
|
|
|
675
691
|
|
|
676
692
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
677
693
|
|
|
678
|
-
Returns **
|
|
694
|
+
Returns **AsyncIterator<[Hook](#hook)>** all matching hooks of the provider
|
|
679
695
|
|
|
680
696
|
### pullRequests
|
|
681
697
|
|
|
@@ -685,7 +701,7 @@ List pull requests.
|
|
|
685
701
|
|
|
686
702
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
687
703
|
|
|
688
|
-
Returns **
|
|
704
|
+
Returns **AsyncIterator<[PullRequest](#pullrequest)>** all matching pullRequests of the provider
|
|
689
705
|
|
|
690
706
|
### repositoryGroupClass
|
|
691
707
|
|
|
@@ -705,7 +721,7 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
705
721
|
|
|
706
722
|
We are our own provider.
|
|
707
723
|
|
|
708
|
-
Returns **
|
|
724
|
+
Returns **[BaseProvider](#baseprovider)** this
|
|
709
725
|
|
|
710
726
|
### url
|
|
711
727
|
|
|
@@ -769,7 +785,7 @@ Creates a new provider for a given set of options.
|
|
|
769
785
|
* `options.instanceIdentifier` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**
|
|
770
786
|
* `env` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** taken from process.env
|
|
771
787
|
|
|
772
|
-
Returns **
|
|
788
|
+
Returns **[BaseProvider](#baseprovider)** newly created provider or undefined if options are not sufficient to construct a provider
|
|
773
789
|
|
|
774
790
|
## priority
|
|
775
791
|
|
|
@@ -791,7 +807,7 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
791
807
|
### Properties
|
|
792
808
|
|
|
793
809
|
* `message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
794
|
-
* `updates` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)
|
|
810
|
+
* `updates` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[ContentEntry](#contententry)>**
|
|
795
811
|
|
|
796
812
|
## Commit
|
|
797
813
|
|
|
@@ -839,6 +855,10 @@ Deliver repository and branch url combined.
|
|
|
839
855
|
|
|
840
856
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 'repoUrl#branch'
|
|
841
857
|
|
|
858
|
+
### refType
|
|
859
|
+
|
|
860
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tags
|
|
861
|
+
|
|
842
862
|
### isDefault
|
|
843
863
|
|
|
844
864
|
Are we the default branch.
|
|
@@ -851,7 +871,7 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
851
871
|
|
|
852
872
|
Delete the branch from the [Repository](#repository).
|
|
853
873
|
|
|
854
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
874
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<any>**
|
|
855
875
|
|
|
856
876
|
### commit
|
|
857
877
|
|
|
@@ -860,10 +880,10 @@ Commit entries.
|
|
|
860
880
|
#### Parameters
|
|
861
881
|
|
|
862
882
|
* `message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** commit message
|
|
863
|
-
* `updates` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)
|
|
883
|
+
* `updates` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[ContentEntry](#contententry)>** content to be commited
|
|
864
884
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
865
885
|
|
|
866
|
-
Returns **[CommitResult](#commitresult)
|
|
886
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[CommitResult](#commitresult)>**
|
|
867
887
|
|
|
868
888
|
### commitIntoPullRequest
|
|
869
889
|
|
|
@@ -879,7 +899,7 @@ Add commits into a pull request.
|
|
|
879
899
|
* `options.skipWithoutCommits` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** do not create a PR if no commits are given
|
|
880
900
|
* `options.bodyFromCommitMessages` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** generate body from commit messages
|
|
881
901
|
|
|
882
|
-
Returns **[PullRequest](#pullrequest)
|
|
902
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[PullRequest](#pullrequest)>**
|
|
883
903
|
|
|
884
904
|
### removeEntries
|
|
885
905
|
|
|
@@ -887,7 +907,7 @@ Remove entries form the branch.
|
|
|
887
907
|
|
|
888
908
|
#### Parameters
|
|
889
909
|
|
|
890
|
-
* `entries` **
|
|
910
|
+
* `entries` **AsyncIterator<[ContentEntry](#contententry)>**
|
|
891
911
|
|
|
892
912
|
### entryClass
|
|
893
913
|
|
|
@@ -995,7 +1015,7 @@ Lookup a repository in the provider and all of its repository groups.
|
|
|
995
1015
|
|
|
996
1016
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** of the repository
|
|
997
1017
|
|
|
998
|
-
Returns **[Repository](#repository)
|
|
1018
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Repository](#repository)>**
|
|
999
1019
|
|
|
1000
1020
|
### repositoryGroup
|
|
1001
1021
|
|
|
@@ -1005,7 +1025,7 @@ Lookup a repository group.
|
|
|
1005
1025
|
|
|
1006
1026
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** of the group
|
|
1007
1027
|
|
|
1008
|
-
Returns **[RepositoryGroup](#repositorygroup)
|
|
1028
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[RepositoryGroup](#repositorygroup)>**
|
|
1009
1029
|
|
|
1010
1030
|
### repositoryGroups
|
|
1011
1031
|
|
|
@@ -1015,7 +1035,7 @@ List groups.
|
|
|
1015
1035
|
|
|
1016
1036
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
1017
1037
|
|
|
1018
|
-
Returns **
|
|
1038
|
+
Returns **AsyncIterator<[RepositoryGroup](#repositorygroup)>** all matching repositories groups of the provider
|
|
1019
1039
|
|
|
1020
1040
|
### createRepositoryGroup
|
|
1021
1041
|
|
|
@@ -1027,7 +1047,7 @@ If there is already a group for the given name it will be returend instead
|
|
|
1027
1047
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** of the group
|
|
1028
1048
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
1029
1049
|
|
|
1030
|
-
Returns **[RepositoryGroup](#repositorygroup)
|
|
1050
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[RepositoryGroup](#repositorygroup)>**
|
|
1031
1051
|
|
|
1032
1052
|
### addRepositoryGroup
|
|
1033
1053
|
|
|
@@ -1050,7 +1070,7 @@ Object with a name.
|
|
|
1050
1070
|
|
|
1051
1071
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1052
1072
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
1053
|
-
* `additionalProperties`
|
|
1073
|
+
* `additionalProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
1054
1074
|
|
|
1055
1075
|
### Properties
|
|
1056
1076
|
|
|
@@ -1072,6 +1092,10 @@ Beatified name use for human displaying only.
|
|
|
1072
1092
|
|
|
1073
1093
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** human readable name
|
|
1074
1094
|
|
|
1095
|
+
### update
|
|
1096
|
+
|
|
1097
|
+
Save object attributes in the backing store.
|
|
1098
|
+
|
|
1075
1099
|
### toJSON
|
|
1076
1100
|
|
|
1077
1101
|
Provide name and all defined attributes.
|
|
@@ -1134,7 +1158,7 @@ Returns **[Repository](#repository)** destination repository
|
|
|
1134
1158
|
|
|
1135
1159
|
### provider
|
|
1136
1160
|
|
|
1137
|
-
Returns **
|
|
1161
|
+
Returns **[BaseProvider](#baseprovider)**
|
|
1138
1162
|
|
|
1139
1163
|
### equals
|
|
1140
1164
|
|
|
@@ -1168,7 +1192,7 @@ Decline the pull request.
|
|
|
1168
1192
|
|
|
1169
1193
|
### reviews
|
|
1170
1194
|
|
|
1171
|
-
Returns **
|
|
1195
|
+
Returns **AsyncIterator<[Review](#review)>**
|
|
1172
1196
|
|
|
1173
1197
|
### identifier
|
|
1174
1198
|
|
|
@@ -1208,7 +1232,7 @@ result will be filtered by source branch, destination branch and states
|
|
|
1208
1232
|
* `filter.destination` **[Branch](#branch)?**
|
|
1209
1233
|
* `filter.states` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>?**
|
|
1210
1234
|
|
|
1211
|
-
Returns **
|
|
1235
|
+
Returns **AsyncIterator<[PullRequest](#pullrequest)>**
|
|
1212
1236
|
|
|
1213
1237
|
### open
|
|
1214
1238
|
|
|
@@ -1260,6 +1284,14 @@ Draft state of the pull request.
|
|
|
1260
1284
|
|
|
1261
1285
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
|
|
1262
1286
|
|
|
1287
|
+
## ContentEntry
|
|
1288
|
+
|
|
1289
|
+
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
1290
|
+
|
|
1291
|
+
### Properties
|
|
1292
|
+
|
|
1293
|
+
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1294
|
+
|
|
1263
1295
|
## Ref
|
|
1264
1296
|
|
|
1265
1297
|
**Extends NamedObject**
|
|
@@ -1278,13 +1310,13 @@ Check for equality.
|
|
|
1278
1310
|
|
|
1279
1311
|
#### Parameters
|
|
1280
1312
|
|
|
1281
|
-
* `other` **[
|
|
1313
|
+
* `other` **[Ref](#ref)**
|
|
1282
1314
|
|
|
1283
1315
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if name and repository are equal
|
|
1284
1316
|
|
|
1285
1317
|
### ref
|
|
1286
1318
|
|
|
1287
|
-
ref name
|
|
1319
|
+
ref name.
|
|
1288
1320
|
|
|
1289
1321
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** git ref of the Ref
|
|
1290
1322
|
|
|
@@ -1296,7 +1328,7 @@ Get sha of a ref.
|
|
|
1296
1328
|
|
|
1297
1329
|
* `ref` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (optional, default `this.ref`)
|
|
1298
1330
|
|
|
1299
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
1331
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** sha of the ref
|
|
1300
1332
|
|
|
1301
1333
|
### entries
|
|
1302
1334
|
|
|
@@ -1306,13 +1338,13 @@ List entries of the branch.
|
|
|
1306
1338
|
|
|
1307
1339
|
* `matchingPatterns` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
|
|
1308
1340
|
|
|
1309
|
-
Returns **ContentEntry
|
|
1341
|
+
Returns **AsyncIterator<[ContentEntry](#contententry)>** all matching entries in the branch
|
|
1310
1342
|
|
|
1311
1343
|
### asyncIterator
|
|
1312
1344
|
|
|
1313
1345
|
List all entries of the branch.
|
|
1314
1346
|
|
|
1315
|
-
Returns **
|
|
1347
|
+
Returns **AsyncIterator<[ContentEntry](#contententry)>** all entries in the branch
|
|
1316
1348
|
|
|
1317
1349
|
### maybeEntry
|
|
1318
1350
|
|
|
@@ -1322,7 +1354,7 @@ Get exactly one matching entry by name or undefine if no such entry is found.
|
|
|
1322
1354
|
|
|
1323
1355
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1324
1356
|
|
|
1325
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
1357
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[ContentEntry](#contententry)>**
|
|
1326
1358
|
|
|
1327
1359
|
### entry
|
|
1328
1360
|
|
|
@@ -1332,13 +1364,13 @@ Get exactly one matching entry by name (throws if entry is not found).
|
|
|
1332
1364
|
|
|
1333
1365
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1334
1366
|
|
|
1335
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
1367
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[ContentEntry](#contententry)>**
|
|
1336
1368
|
|
|
1337
1369
|
### provider
|
|
1338
1370
|
|
|
1339
1371
|
The provider we live in.
|
|
1340
1372
|
|
|
1341
|
-
Returns **
|
|
1373
|
+
Returns **[BaseProvider](#baseprovider)**
|
|
1342
1374
|
|
|
1343
1375
|
### owner
|
|
1344
1376
|
|
|
@@ -1422,7 +1454,7 @@ Abstract repository collection.
|
|
|
1422
1454
|
|
|
1423
1455
|
### Parameters
|
|
1424
1456
|
|
|
1425
|
-
* `provider` **
|
|
1457
|
+
* `provider` **[BaseProvider](#baseprovider)**
|
|
1426
1458
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** of the group
|
|
1427
1459
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
1428
1460
|
|
|
@@ -1433,7 +1465,7 @@ Abstract repository collection.
|
|
|
1433
1465
|
|
|
1434
1466
|
### Properties
|
|
1435
1467
|
|
|
1436
|
-
* `provider` **
|
|
1468
|
+
* `provider` **[BaseProvider](#baseprovider)**
|
|
1437
1469
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1438
1470
|
|
|
1439
1471
|
### repositoryClass
|
|
@@ -1530,7 +1562,7 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
1530
1562
|
|
|
1531
1563
|
The owners provider.
|
|
1532
1564
|
|
|
1533
|
-
Returns **
|
|
1565
|
+
Returns **[BaseProvider](#baseprovider)**
|
|
1534
1566
|
|
|
1535
1567
|
### identifier
|
|
1536
1568
|
|
|
@@ -1557,7 +1589,7 @@ Lookup entries form the head of the default branch.
|
|
|
1557
1589
|
|
|
1558
1590
|
* `name`
|
|
1559
1591
|
|
|
1560
|
-
Returns **
|
|
1592
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[ContentEntry](#contententry)>**
|
|
1561
1593
|
|
|
1562
1594
|
### entries
|
|
1563
1595
|
|
|
@@ -1567,7 +1599,7 @@ List entries of the default branch.
|
|
|
1567
1599
|
|
|
1568
1600
|
* `matchingPatterns` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
|
|
1569
1601
|
|
|
1570
|
-
Returns **
|
|
1602
|
+
Returns **AsyncIterator<[ContentEntry](#contententry)>** all matching entries in the branch
|
|
1571
1603
|
|
|
1572
1604
|
### maybeEntry
|
|
1573
1605
|
|
|
@@ -1577,7 +1609,7 @@ Get exactly one matching entry by name or undefined if no such entry is found.
|
|
|
1577
1609
|
|
|
1578
1610
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1579
1611
|
|
|
1580
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
1612
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[ContentEntry](#contententry)>**
|
|
1581
1613
|
|
|
1582
1614
|
### urls
|
|
1583
1615
|
|
|
@@ -1639,10 +1671,6 @@ By default we are not a template.
|
|
|
1639
1671
|
|
|
1640
1672
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** false
|
|
1641
1673
|
|
|
1642
|
-
### update
|
|
1643
|
-
|
|
1644
|
-
Updates repositroy attributes.
|
|
1645
|
-
|
|
1646
1674
|
### branch
|
|
1647
1675
|
|
|
1648
1676
|
Lookup branch by name.
|
|
@@ -1665,7 +1693,7 @@ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
1665
1693
|
|
|
1666
1694
|
* `patterns`
|
|
1667
1695
|
|
|
1668
|
-
Returns **
|
|
1696
|
+
Returns **AsyncIterator<[Branch](#branch)>** of all branches
|
|
1669
1697
|
|
|
1670
1698
|
### createBranch
|
|
1671
1699
|
|
|
@@ -1699,7 +1727,7 @@ Delete a [Branch](#branch).
|
|
|
1699
1727
|
|
|
1700
1728
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** of the branch
|
|
1701
1729
|
|
|
1702
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
1730
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<any>**
|
|
1703
1731
|
|
|
1704
1732
|
### tags
|
|
1705
1733
|
|
|
@@ -1707,7 +1735,7 @@ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
1707
1735
|
|
|
1708
1736
|
* `patterns` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>)**
|
|
1709
1737
|
|
|
1710
|
-
Returns **
|
|
1738
|
+
Returns **AsyncIterator<[Tag](#tag)>** of all tags
|
|
1711
1739
|
|
|
1712
1740
|
### tag
|
|
1713
1741
|
|
|
@@ -1717,14 +1745,14 @@ Get a Tag.
|
|
|
1717
1745
|
|
|
1718
1746
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1719
1747
|
|
|
1720
|
-
Returns **[Tag](#tag)
|
|
1748
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Tag](#tag)>**
|
|
1721
1749
|
|
|
1722
1750
|
### delete
|
|
1723
1751
|
|
|
1724
1752
|
Delete the repository from the [Provider](Provider).
|
|
1725
1753
|
[Provider#deleteRepository](Provider#deleteRepository)
|
|
1726
1754
|
|
|
1727
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
1755
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<any>**
|
|
1728
1756
|
|
|
1729
1757
|
### createPullRequest
|
|
1730
1758
|
|
|
@@ -1736,7 +1764,7 @@ Create a pull request (or deliver an already present for thefiven name).
|
|
|
1736
1764
|
* `source` **[Branch](#branch)** branch
|
|
1737
1765
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
1738
1766
|
|
|
1739
|
-
Returns **[PullRequest](#pullrequest)
|
|
1767
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[PullRequest](#pullrequest)>**
|
|
1740
1768
|
|
|
1741
1769
|
### addPullRequest
|
|
1742
1770
|
|
|
@@ -1754,7 +1782,7 @@ Returns **[PullRequest](#pullrequest)**
|
|
|
1754
1782
|
|
|
1755
1783
|
Deliver all [PullRequest](#pullrequest)s.
|
|
1756
1784
|
|
|
1757
|
-
Returns **
|
|
1785
|
+
Returns **AsyncIterator<[PullRequest](#pullrequest)>** of all pull requests
|
|
1758
1786
|
|
|
1759
1787
|
### pullRequest
|
|
1760
1788
|
|
|
@@ -1774,7 +1802,7 @@ Delete a [PullRequest](#pullrequest).
|
|
|
1774
1802
|
|
|
1775
1803
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1776
1804
|
|
|
1777
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
1805
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<any>**
|
|
1778
1806
|
|
|
1779
1807
|
### addHook
|
|
1780
1808
|
|
|
@@ -1796,7 +1824,7 @@ Add a new Hook.
|
|
|
1796
1824
|
|
|
1797
1825
|
List hooks.
|
|
1798
1826
|
|
|
1799
|
-
Returns **[Hook](#hook)
|
|
1827
|
+
Returns **AsyncIterator<[Hook](#hook)>** all hooks of the repository
|
|
1800
1828
|
|
|
1801
1829
|
### hook
|
|
1802
1830
|
|
|
@@ -1806,7 +1834,7 @@ Get a Hook.
|
|
|
1806
1834
|
|
|
1807
1835
|
* `id` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))**
|
|
1808
1836
|
|
|
1809
|
-
Returns **[Hook](#hook)
|
|
1837
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Hook](#hook)>** for the given id
|
|
1810
1838
|
|
|
1811
1839
|
### type
|
|
1812
1840
|
|
|
@@ -1822,7 +1850,7 @@ Get sha of a ref.
|
|
|
1822
1850
|
|
|
1823
1851
|
* `ref` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1824
1852
|
|
|
1825
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
1853
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** sha of the ref
|
|
1826
1854
|
|
|
1827
1855
|
### repositoryClass
|
|
1828
1856
|
|
|
@@ -1874,12 +1902,6 @@ URLs of the repository
|
|
|
1874
1902
|
|
|
1875
1903
|
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
|
|
1876
1904
|
|
|
1877
|
-
## homePageURL
|
|
1878
|
-
|
|
1879
|
-
The url of home page.
|
|
1880
|
-
|
|
1881
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1882
|
-
|
|
1883
1905
|
## issuesURL
|
|
1884
1906
|
|
|
1885
1907
|
The url of issue tracking system.
|
|
@@ -1904,7 +1926,7 @@ Lookup a repository in the provider and all of its repository groups.
|
|
|
1904
1926
|
|
|
1905
1927
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** of the repository
|
|
1906
1928
|
|
|
1907
|
-
Returns **[Repository](#repository)
|
|
1929
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Repository](#repository)>**
|
|
1908
1930
|
|
|
1909
1931
|
### repositoryGroup
|
|
1910
1932
|
|
|
@@ -1914,7 +1936,7 @@ Get a single group.
|
|
|
1914
1936
|
|
|
1915
1937
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1916
1938
|
|
|
1917
|
-
Returns **[RepositoryGroup](#repositorygroup)
|
|
1939
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[RepositoryGroup](#repositorygroup)>** deliver the one and only present group
|
|
1918
1940
|
|
|
1919
1941
|
### repositoryGroups
|
|
1920
1942
|
|
|
@@ -1924,7 +1946,7 @@ List groups.
|
|
|
1924
1946
|
|
|
1925
1947
|
* `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))**
|
|
1926
1948
|
|
|
1927
|
-
Returns **
|
|
1949
|
+
Returns **AsyncIterator<[RepositoryGroup](#repositorygroup)>** always deliver the one and only present group
|
|
1928
1950
|
|
|
1929
1951
|
## Tag
|
|
1930
1952
|
|
|
@@ -1938,6 +1960,10 @@ Tag refs
|
|
|
1938
1960
|
* `name`
|
|
1939
1961
|
* `options`
|
|
1940
1962
|
|
|
1963
|
+
### refType
|
|
1964
|
+
|
|
1965
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tags
|
|
1966
|
+
|
|
1941
1967
|
### isWritable
|
|
1942
1968
|
|
|
1943
1969
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** false
|
|
@@ -1962,7 +1988,7 @@ A URL auth component will be removed to.
|
|
|
1962
1988
|
|
|
1963
1989
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1964
1990
|
* `repositoryBases` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** all possible bases
|
|
1965
|
-
* `whenFound` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)
|
|
1991
|
+
* `whenFound` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** to be called with the found base name
|
|
1966
1992
|
|
|
1967
1993
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name without base
|
|
1968
1994
|
|
|
@@ -1972,9 +1998,9 @@ Loops over names and executes stripBaseName.
|
|
|
1972
1998
|
|
|
1973
1999
|
### Parameters
|
|
1974
2000
|
|
|
1975
|
-
* `names` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
2001
|
+
* `names` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>)**
|
|
1976
2002
|
* `repositoryBases` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** all possible bases
|
|
1977
|
-
* `whenFound` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)
|
|
2003
|
+
* `whenFound` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** to be called with the found base name
|
|
1978
2004
|
|
|
1979
2005
|
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** names without base
|
|
1980
2006
|
|
|
@@ -1989,6 +2015,8 @@ Find a new branch name for a given pattern.
|
|
|
1989
2015
|
* `repository` **[Repository](#repository)**
|
|
1990
2016
|
* `pattern` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
1991
2017
|
|
|
2018
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
|
|
2019
|
+
|
|
1992
2020
|
# install
|
|
1993
2021
|
|
|
1994
2022
|
With [npm](http://npmjs.org) do:
|