repository-provider 35.2.19 → 35.2.20
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 +7 -2
- package/package.json +1 -1
- package/src/attributes.mjs +1 -1
- package/src/pull-request.mjs +4 -2
- package/types/attributes.d.mts +1 -1
- package/types/pull-request.d.mts +2 -2
package/README.md
CHANGED
|
@@ -361,6 +361,7 @@ console.log(await readme.string);
|
|
|
361
361
|
* [Parameters](#parameters-85)
|
|
362
362
|
* [Properties](#properties-9)
|
|
363
363
|
* [slug](#slug-2)
|
|
364
|
+
* [url](#url-4)
|
|
364
365
|
* [entry](#entry-2)
|
|
365
366
|
* [Parameters](#parameters-86)
|
|
366
367
|
* [entries](#entries-2)
|
|
@@ -1526,7 +1527,7 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
1526
1527
|
|
|
1527
1528
|
Url of home page.
|
|
1528
1529
|
|
|
1529
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the owner
|
|
1530
|
+
Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** as provided from the owner
|
|
1530
1531
|
|
|
1531
1532
|
### issuesURL
|
|
1532
1533
|
|
|
@@ -1675,7 +1676,7 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
1675
1676
|
|
|
1676
1677
|
Url of home page.
|
|
1677
1678
|
|
|
1678
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the owner
|
|
1679
|
+
Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** as provided from the owner
|
|
1679
1680
|
|
|
1680
1681
|
### issuesURL
|
|
1681
1682
|
|
|
@@ -2206,6 +2207,10 @@ Name of the repo as used in the URL.
|
|
|
2206
2207
|
|
|
2207
2208
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
2208
2209
|
|
|
2210
|
+
### url
|
|
2211
|
+
|
|
2212
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
2213
|
+
|
|
2209
2214
|
### entry
|
|
2210
2215
|
|
|
2211
2216
|
Lookup entries form the head of the default branch.
|
package/package.json
CHANGED
package/src/attributes.mjs
CHANGED
|
@@ -46,7 +46,7 @@ export const uuid_attribute = {
|
|
|
46
46
|
/**
|
|
47
47
|
* @type {AttributeDefinition}
|
|
48
48
|
*/
|
|
49
|
-
export const
|
|
49
|
+
export const empty_attribute = { ...default_attribute, type: "boolean" };
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* @type {AttributeDefinition}
|
package/src/pull-request.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
body_attribute,
|
|
10
10
|
title_attribute,
|
|
11
11
|
boolean_attribute,
|
|
12
|
-
|
|
12
|
+
empty_attribute
|
|
13
13
|
} from "./attributes.mjs";
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -130,10 +130,12 @@ export class PullRequest extends OwnedObject {
|
|
|
130
130
|
*/
|
|
131
131
|
draft: boolean_attribute,
|
|
132
132
|
dry: boolean_attribute,
|
|
133
|
-
empty:
|
|
133
|
+
empty: empty_attribute
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
/** @type {Branch} */ source;
|
|
138
|
+
|
|
137
139
|
constructor(source, owner, name, options) {
|
|
138
140
|
let state = "OPEN";
|
|
139
141
|
|
package/types/attributes.d.mts
CHANGED
package/types/pull-request.d.mts
CHANGED
|
@@ -106,7 +106,7 @@ export class PullRequest extends OwnedObject {
|
|
|
106
106
|
name: import("pacc").AttributeDefinition;
|
|
107
107
|
description: import("pacc").AttributeDefinition;
|
|
108
108
|
};
|
|
109
|
-
source:
|
|
109
|
+
/** @type {Branch} */ source: Branch;
|
|
110
110
|
get destination(): any;
|
|
111
111
|
get number(): string;
|
|
112
112
|
get dry(): boolean;
|
|
@@ -136,6 +136,6 @@ export class PullRequest extends OwnedObject {
|
|
|
136
136
|
reviews(): AsyncIterable<Review>;
|
|
137
137
|
}
|
|
138
138
|
import { OwnedObject } from "./owned-object.mjs";
|
|
139
|
+
import { Branch } from "./branch.mjs";
|
|
139
140
|
import { Repository } from "./repository.mjs";
|
|
140
141
|
import { Review } from "./review.mjs";
|
|
141
|
-
import { Branch } from "./branch.mjs";
|