repository-provider 32.3.12 → 32.3.14
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 +11 -0
- package/src/base-provider.mjs +4 -4
- package/src/pull-request.mjs +6 -16
package/package.json
CHANGED
package/src/attributes.mjs
CHANGED
|
@@ -33,3 +33,14 @@ export const state = { type: "string" };
|
|
|
33
33
|
|
|
34
34
|
export const secret = { type: "string", private: true, writable: true };
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* The description of the pull request.
|
|
38
|
+
* @return {string}
|
|
39
|
+
*/
|
|
40
|
+
export const body = { type: "string", writable: true };
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The one line description of the pull request.
|
|
44
|
+
* @return {string}
|
|
45
|
+
*/
|
|
46
|
+
export const title = { type: "string", writable: true };
|
package/src/base-provider.mjs
CHANGED
|
@@ -8,7 +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, name } from "./attributes.mjs";
|
|
11
|
+
import { url, name, description } from "./attributes.mjs";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @typedef {Object} MessageDestination
|
|
@@ -98,7 +98,9 @@ export class BaseProvider extends BaseObject {
|
|
|
98
98
|
|
|
99
99
|
static get attributes() {
|
|
100
100
|
return {
|
|
101
|
-
|
|
101
|
+
url,
|
|
102
|
+
description,
|
|
103
|
+
|
|
102
104
|
/**
|
|
103
105
|
* In case there are several providers able to support a given source which one sould be used ?
|
|
104
106
|
* this defines the order
|
|
@@ -115,8 +117,6 @@ export class BaseProvider extends BaseObject {
|
|
|
115
117
|
...name,
|
|
116
118
|
env: ["{{instanceIdentifier}}NAME"]
|
|
117
119
|
},
|
|
118
|
-
|
|
119
|
-
url,
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* To forward info/warn and error messages to
|
package/src/pull-request.mjs
CHANGED
|
@@ -3,7 +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, state } from "./attributes.mjs";
|
|
6
|
+
import { url, state, body, title } from "./attributes.mjs";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Abstract pull request.
|
|
@@ -89,18 +89,10 @@ export class PullRequest extends OwnedObject {
|
|
|
89
89
|
static get attributes() {
|
|
90
90
|
return {
|
|
91
91
|
...super.attributes,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
title: { type: "string", writable: true },
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The description of the pull request.
|
|
100
|
-
* @return {string}
|
|
101
|
-
*/
|
|
102
|
-
body: { type: "string", writable: true },
|
|
103
|
-
|
|
92
|
+
body,
|
|
93
|
+
title,
|
|
94
|
+
url,
|
|
95
|
+
|
|
104
96
|
/**
|
|
105
97
|
* state of the pull request.
|
|
106
98
|
* - OPEN
|
|
@@ -150,9 +142,7 @@ export class PullRequest extends OwnedObject {
|
|
|
150
142
|
|
|
151
143
|
empty: {
|
|
152
144
|
type: "boolean"
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
url
|
|
145
|
+
}
|
|
156
146
|
};
|
|
157
147
|
}
|
|
158
148
|
|