repository-provider 32.5.2 → 32.6.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 +8 -1
- package/package.json +3 -3
- package/src/owned-object.mjs +8 -0
- package/src/pull-request.mjs +1 -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.
|
|
3
|
+
"version": "32.6.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"ava": "^5.1.0",
|
|
38
|
-
"browser-ava": "^1.3.
|
|
38
|
+
"browser-ava": "^1.3.17",
|
|
39
39
|
"c8": "^7.12.0",
|
|
40
40
|
"documentation": "^14.0.1",
|
|
41
41
|
"repository-provider-test-support": "^2.2.32",
|
|
42
|
-
"semantic-release": "^
|
|
42
|
+
"semantic-release": "^20.0.2",
|
|
43
43
|
"typescript": "^4.9.4"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
package/src/owned-object.mjs
CHANGED
|
@@ -52,6 +52,14 @@ export class OwnedObject extends NamedObject {
|
|
|
52
52
|
return this.owner.api;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* URL as given by the owner.
|
|
57
|
+
* @return {string} url
|
|
58
|
+
*/
|
|
59
|
+
get url() {
|
|
60
|
+
return this.owner.url;
|
|
61
|
+
}
|
|
62
|
+
|
|
55
63
|
/**
|
|
56
64
|
* The provider we live in.
|
|
57
65
|
* @return {BaseProvider}
|
package/src/pull-request.mjs
CHANGED
|
@@ -177,8 +177,7 @@ export class PullRequest extends OwnedObject {
|
|
|
177
177
|
* @return {string} url
|
|
178
178
|
*/
|
|
179
179
|
get url() {
|
|
180
|
-
|
|
181
|
-
return `${this.provider.url}${this.repository.fullName}/pull/${this.name}`;
|
|
180
|
+
return `${this.repository.url}/pull/${this.name}`;
|
|
182
181
|
}
|
|
183
182
|
|
|
184
183
|
get number() {
|
|
@@ -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
|
|