repository-provider 32.3.13 → 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/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/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
|
|