repository-provider 32.3.8 → 32.3.10
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 +0 -5
- package/package.json +2 -2
- package/src/attributes.mjs +1 -0
- package/src/base-provider.mjs +3 -5
- package/src/pull-request.mjs +2 -12
- package/src/repository-group.mjs +2 -1
- package/src/repository.mjs +2 -1
package/README.md
CHANGED
|
@@ -217,7 +217,6 @@ console.log(await readme.getString());
|
|
|
217
217
|
* [fullName](#fullname-2)
|
|
218
218
|
* [url](#url-2)
|
|
219
219
|
* [repository](#repository-1)
|
|
220
|
-
* [provider](#provider-2)
|
|
221
220
|
* [equals](#equals-4)
|
|
222
221
|
* [Parameters](#parameters-50)
|
|
223
222
|
* [delete](#delete-1)
|
|
@@ -1304,10 +1303,6 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
1304
1303
|
|
|
1305
1304
|
Returns **[Repository](#repository)** destination repository
|
|
1306
1305
|
|
|
1307
|
-
### provider
|
|
1308
|
-
|
|
1309
|
-
Returns **[BaseProvider](#baseprovider)** 
|
|
1310
|
-
|
|
1311
1306
|
### equals
|
|
1312
1307
|
|
|
1313
1308
|
Check for equality
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.3.
|
|
3
|
+
"version": "32.3.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"browser-ava": "^1.3.13",
|
|
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.24",
|
|
42
42
|
"semantic-release": "^19.0.5",
|
|
43
43
|
"typescript": "^4.9.4"
|
|
44
44
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const url = { description: "home of the object", type: "url" };
|
package/src/base-provider.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import { Hook } from "./hook.mjs";
|
|
|
8
8
|
import { Project } from "./project.mjs";
|
|
9
9
|
import { Milestone } from "./milestone.mjs";
|
|
10
10
|
import { BaseObject } from "./base-object.mjs";
|
|
11
|
+
import { url } from "./attributes.mjs";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* @typedef {Object} MessageDestination
|
|
@@ -115,11 +116,8 @@ export class BaseProvider extends BaseObject {
|
|
|
115
116
|
env: ["{{instanceIdentifier}}NAME"]
|
|
116
117
|
},
|
|
117
118
|
|
|
118
|
-
url
|
|
119
|
-
|
|
120
|
-
type: "string"
|
|
121
|
-
},
|
|
122
|
-
|
|
119
|
+
url,
|
|
120
|
+
|
|
123
121
|
/**
|
|
124
122
|
* To forward info/warn and error messages to
|
|
125
123
|
*/
|
package/src/pull-request.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { OwnedObject } from "./owned-object.mjs";
|
|
|
3
3
|
import { Branch } from "./branch.mjs";
|
|
4
4
|
import { Repository } from "./repository.mjs";
|
|
5
5
|
import { Review } from "./review.mjs";
|
|
6
|
+
import { url } from "./attributes.mjs";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Abstract pull request.
|
|
@@ -151,9 +152,7 @@ export class PullRequest extends OwnedObject {
|
|
|
151
152
|
type: "boolean"
|
|
152
153
|
},
|
|
153
154
|
|
|
154
|
-
url
|
|
155
|
-
type: "url"
|
|
156
|
-
}
|
|
155
|
+
url
|
|
157
156
|
};
|
|
158
157
|
}
|
|
159
158
|
|
|
@@ -222,15 +221,6 @@ export class PullRequest extends OwnedObject {
|
|
|
222
221
|
return this.owner?.repository;
|
|
223
222
|
}
|
|
224
223
|
|
|
225
|
-
/**
|
|
226
|
-
* Check for equality
|
|
227
|
-
* @param {PullRequest} other
|
|
228
|
-
* @return {boolean} true if number and repository are equal
|
|
229
|
-
*/
|
|
230
|
-
equals(other) {
|
|
231
|
-
return super.equals(other) && this.repository.equals(other.repository);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
224
|
/**
|
|
235
225
|
* Delete the pull request from the {@link Repository}.
|
|
236
226
|
* @see {@link Repository#deletePullRequest}
|
package/src/repository-group.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RepositoryOwner } from "./repository-owner.mjs";
|
|
2
2
|
import { OwnedObject } from "./owned-object.mjs";
|
|
3
3
|
import { BaseProvider } from "./base-provider.mjs";
|
|
4
|
+
import { url } from "./attributes.mjs";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Abstract repository collection.
|
|
@@ -43,7 +44,7 @@ export class RepositoryGroup extends RepositoryOwner(OwnedObject) {
|
|
|
43
44
|
/**
|
|
44
45
|
* api url
|
|
45
46
|
*/
|
|
46
|
-
url
|
|
47
|
+
url,
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
50
|
* Avatar.
|
package/src/repository.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { Hook } from "./hook.mjs";
|
|
|
4
4
|
import { Tag } from "./tag.mjs";
|
|
5
5
|
import { Branch } from "./branch.mjs";
|
|
6
6
|
import { PullRequest } from "./pull-request.mjs";
|
|
7
|
+
import { url } from "./attributes.mjs";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Abstract repository
|
|
@@ -49,7 +50,7 @@ export class Repository extends OwnedObject {
|
|
|
49
50
|
* URL of the repository
|
|
50
51
|
* @return {string}
|
|
51
52
|
*/
|
|
52
|
-
url
|
|
53
|
+
url,
|
|
53
54
|
|
|
54
55
|
cloneURL: { type: "url" },
|
|
55
56
|
|