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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "32.5.2",
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.15",
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": "^19.0.5",
42
+ "semantic-release": "^20.0.2",
43
43
  "typescript": "^4.9.4"
44
44
  },
45
45
  "engines": {
@@ -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}
@@ -177,8 +177,7 @@ export class PullRequest extends OwnedObject {
177
177
  * @return {string} url
178
178
  */
179
179
  get url() {
180
- // TODO repo url
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() {