repository-provider 32.5.2 → 32.6.0
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 +3 -3
- package/src/owned-object.mjs +8 -0
- package/src/pull-request.mjs +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.6.0",
|
|
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() {
|