repository-provider 32.6.0 → 32.6.2
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 +8 -1
- package/package.json +3 -3
- package/src/pull-request.mjs +2 -2
- package/src/single-group-provider.mjs +3 -5
package/README.md
CHANGED
|
@@ -192,6 +192,7 @@ console.log(await readme.getString());
|
|
|
192
192
|
* [equals](#equals-3)
|
|
193
193
|
* [Parameters](#parameters-44)
|
|
194
194
|
* [api](#api)
|
|
195
|
+
* [url](#url-2)
|
|
195
196
|
* [provider](#provider-1)
|
|
196
197
|
* [identifier](#identifier)
|
|
197
198
|
* [fullName](#fullname-1)
|
|
@@ -218,7 +219,7 @@ console.log(await readme.getString());
|
|
|
218
219
|
* [Parameters](#parameters-50)
|
|
219
220
|
* [Properties](#properties-7)
|
|
220
221
|
* [fullName](#fullname-2)
|
|
221
|
-
* [url](#url-
|
|
222
|
+
* [url](#url-3)
|
|
222
223
|
* [repository](#repository-1)
|
|
223
224
|
* [delete](#delete-2)
|
|
224
225
|
* [merge](#merge)
|
|
@@ -1153,6 +1154,12 @@ API as given by the owner.
|
|
|
1153
1154
|
|
|
1154
1155
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** url
|
|
1155
1156
|
|
|
1157
|
+
### url
|
|
1158
|
+
|
|
1159
|
+
URL as given by the owner.
|
|
1160
|
+
|
|
1161
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** url
|
|
1162
|
+
|
|
1156
1163
|
### provider
|
|
1157
1164
|
|
|
1158
1165
|
The provider we live in.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.6.
|
|
3
|
+
"version": "32.6.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"browser-ava": "^1.3.17",
|
|
39
39
|
"c8": "^7.12.0",
|
|
40
40
|
"documentation": "^14.0.1",
|
|
41
|
-
"repository-provider-test-support": "^2.2.
|
|
41
|
+
"repository-provider-test-support": "^2.2.35",
|
|
42
42
|
"semantic-release": "^20.0.2",
|
|
43
43
|
"typescript": "^4.9.4"
|
|
44
44
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|
|
50
|
-
"url": "https://github.com/arlac77/repository-provider
|
|
50
|
+
"url": "https://github.com/arlac77/repository-provider"
|
|
51
51
|
},
|
|
52
52
|
"bugs": {
|
|
53
53
|
"url": "https://github.com/arlac77/repository-provider/issues"
|
package/src/pull-request.mjs
CHANGED
|
@@ -192,7 +192,7 @@ export class PullRequest extends OwnedObject {
|
|
|
192
192
|
* @return {Repository} destination repository
|
|
193
193
|
*/
|
|
194
194
|
get repository() {
|
|
195
|
-
return this.owner
|
|
195
|
+
return this.owner.repository;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
@@ -201,7 +201,7 @@ export class PullRequest extends OwnedObject {
|
|
|
201
201
|
* @return {Promise}
|
|
202
202
|
*/
|
|
203
203
|
async delete() {
|
|
204
|
-
return this.owner
|
|
204
|
+
return this.owner.deletePullRequest(this.name);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
@@ -26,12 +26,10 @@ export class SingleGroupProvider extends RepositoryOwner(BaseProvider) {
|
|
|
26
26
|
* @return {Promise<RepositoryGroup>} deliver the one and only present group
|
|
27
27
|
*/
|
|
28
28
|
async repositoryGroup(name) {
|
|
29
|
-
|
|
30
|
-
const { base } = this.parseName(name);
|
|
29
|
+
const { base } = this.parseName(name);
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
31
|
+
if (name && this.supportsBase(base)) {
|
|
32
|
+
return this;
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
|