repository-provider 32.3.9 → 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/package.json +1 -1
- package/src/attributes.mjs +1 -0
- package/src/base-provider.mjs +3 -5
- package/src/pull-request.mjs +2 -3
- package/src/repository-group.mjs +2 -1
- package/src/repository.mjs +2 -1
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|