repository-provider 35.0.2 → 35.0.4
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/package.json +4 -3
- package/src/branch.mjs +1 -1
- package/src/owned-object.mjs +1 -1
- package/src/pull-request.mjs +2 -1
- package/src/ref.mjs +2 -2
- package/src/repository.mjs +7 -7
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "35.0.
|
|
3
|
+
"version": "35.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
|
-
"access": "public"
|
|
5
|
+
"access": "public",
|
|
6
|
+
"provenance": true
|
|
6
7
|
},
|
|
7
8
|
"exports": {
|
|
8
9
|
".": "./src/index.mjs"
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"browser-ava": "^2.1.10",
|
|
39
40
|
"c8": "^9.1.0",
|
|
40
41
|
"documentation": "^14.0.3",
|
|
41
|
-
"repository-provider-test-support": "^3.0.
|
|
42
|
+
"repository-provider-test-support": "^3.0.3",
|
|
42
43
|
"semantic-release": "^23.0.0",
|
|
43
44
|
"typescript": "^5.3.3"
|
|
44
45
|
},
|
package/src/branch.mjs
CHANGED
|
@@ -95,7 +95,7 @@ export class Branch extends Ref {
|
|
|
95
95
|
/**
|
|
96
96
|
* Add commits into a pull request.
|
|
97
97
|
*
|
|
98
|
-
* @param {Commit|
|
|
98
|
+
* @param {Commit|AsyncGenerator<Commit>} commits to be commited
|
|
99
99
|
* @param {Object} options
|
|
100
100
|
* @param {Branch|string} options.pullRequestBranch to commit into
|
|
101
101
|
* @param {boolean} [options.dry=false] do not create a branch and do not commit only create dummy PR
|
package/src/owned-object.mjs
CHANGED
|
@@ -179,7 +179,7 @@ export class OwnedObject extends NamedObject {
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* By default we use the owners implementation.
|
|
182
|
-
* @return {
|
|
182
|
+
* @return {typeof Repository} as defined in the owner
|
|
183
183
|
*/
|
|
184
184
|
get repositoryClass() {
|
|
185
185
|
return this.owner.repositoryClass;
|
package/src/pull-request.mjs
CHANGED
|
@@ -138,7 +138,6 @@ export class PullRequest extends OwnedObject {
|
|
|
138
138
|
let state = "OPEN";
|
|
139
139
|
|
|
140
140
|
super(owner, name, options, {
|
|
141
|
-
source: { value: source },
|
|
142
141
|
state: {
|
|
143
142
|
set(value) {
|
|
144
143
|
value = value.toUpperCase();
|
|
@@ -161,6 +160,8 @@ export class PullRequest extends OwnedObject {
|
|
|
161
160
|
}
|
|
162
161
|
}
|
|
163
162
|
});
|
|
163
|
+
|
|
164
|
+
this.source = source;
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
get destination() {
|
package/src/ref.mjs
CHANGED
|
@@ -55,13 +55,13 @@ export class Ref extends OwnedObject {
|
|
|
55
55
|
/**
|
|
56
56
|
* List entries of the branch.
|
|
57
57
|
* @param {string[]|string} [matchingPatterns]
|
|
58
|
-
* @return {
|
|
58
|
+
* @return {AsyncGenerator<ContentEntry>} all matching entries in the branch
|
|
59
59
|
*/
|
|
60
60
|
async *entries(matchingPatterns) {}
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* List all entries of the branch.
|
|
64
|
-
* @return {
|
|
64
|
+
* @return {AsyncGenerator<ContentEntry>} all entries in the branch
|
|
65
65
|
*/
|
|
66
66
|
async *[Symbol.asyncIterator]() {
|
|
67
67
|
return yield* this.entries();
|
package/src/repository.mjs
CHANGED
|
@@ -145,12 +145,12 @@ export class Repository extends OwnedObject {
|
|
|
145
145
|
* @return {string}
|
|
146
146
|
*/
|
|
147
147
|
get cloneURL() {
|
|
148
|
-
return this.url
|
|
148
|
+
return `git+${this.url}.git`;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* The url of issue tracking system.
|
|
153
|
-
* @return {string}
|
|
153
|
+
* @return {string|undefined}
|
|
154
154
|
*/
|
|
155
155
|
get issuesURL() {
|
|
156
156
|
return undefined;
|
|
@@ -158,7 +158,7 @@ export class Repository extends OwnedObject {
|
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* The url of home page.
|
|
161
|
-
* @return {string}
|
|
161
|
+
* @return {string|undefined}
|
|
162
162
|
*/
|
|
163
163
|
get homePageURL() {
|
|
164
164
|
return undefined;
|
|
@@ -236,7 +236,7 @@ export class Repository extends OwnedObject {
|
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
238
|
* @param {string[]|string} [patterns]
|
|
239
|
-
* @return {
|
|
239
|
+
* @return {AsyncGenerator<Branch>} of all branches
|
|
240
240
|
*/
|
|
241
241
|
async *branches(patterns) {
|
|
242
242
|
await this.initializeBranches();
|
|
@@ -299,7 +299,7 @@ export class Repository extends OwnedObject {
|
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* @param {string[]|string} [patterns]
|
|
302
|
-
* @return {
|
|
302
|
+
* @return {AsyncGenerator<Tag>} of all tags
|
|
303
303
|
*/
|
|
304
304
|
async *tags(patterns) {
|
|
305
305
|
await this.initializeTags();
|
|
@@ -358,7 +358,7 @@ export class Repository extends OwnedObject {
|
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
* Deliver all {@link PullRequest}s.
|
|
361
|
-
* @return {
|
|
361
|
+
* @return {AsyncGenerator<PullRequest>} of all pull requests
|
|
362
362
|
*/
|
|
363
363
|
async *pullRequests() {
|
|
364
364
|
await this.initializePullRequests();
|
|
@@ -414,7 +414,7 @@ export class Repository extends OwnedObject {
|
|
|
414
414
|
|
|
415
415
|
/**
|
|
416
416
|
* List hooks.
|
|
417
|
-
* @return {
|
|
417
|
+
* @return {AsyncGenerator<Hook>} all hooks of the repository
|
|
418
418
|
*/
|
|
419
419
|
async *hooks() {
|
|
420
420
|
await this.initializeHooks();
|