github-repository-provider 7.33.38 → 7.33.40
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-repository-provider",
|
|
3
|
-
"version": "7.33.
|
|
3
|
+
"version": "7.33.40",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"matching-iterator": "^2.0.11",
|
|
37
37
|
"node-fetch": "^3.3.0",
|
|
38
38
|
"one-time-execution-method": "^3.0.6",
|
|
39
|
-
"repository-provider": "^32.6.
|
|
39
|
+
"repository-provider": "^32.6.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"ava": "^5.1.0",
|
|
@@ -13,6 +13,13 @@ export class GithubPullRequest extends PullRequest {
|
|
|
13
13
|
return new Set(["MERGE", "SQUASH", "REBASE"]);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
static get attributeMapping() {
|
|
17
|
+
return {
|
|
18
|
+
...super.attributeMapping,
|
|
19
|
+
url: "api" // TODO undefined ?
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
16
23
|
static get attributes() {
|
|
17
24
|
return {
|
|
18
25
|
...super.attributes,
|
|
@@ -29,7 +36,7 @@ export class GithubPullRequest extends PullRequest {
|
|
|
29
36
|
const query = {};
|
|
30
37
|
|
|
31
38
|
if (filter.source) {
|
|
32
|
-
query.head = `${filter.source.owner.owner.name}:${filter.source.name}
|
|
39
|
+
query.head = `${filter.source.owner.owner.name}:${filter.source.name}`;
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
if (filter.destination) {
|
|
@@ -39,9 +46,7 @@ export class GithubPullRequest extends PullRequest {
|
|
|
39
46
|
for (const state of filter.states || this.defaultListStates) {
|
|
40
47
|
query.state = state;
|
|
41
48
|
|
|
42
|
-
let next = `${repository.api}/pulls?${new URLSearchParams(
|
|
43
|
-
query
|
|
44
|
-
).toString()}`;
|
|
49
|
+
let next = `${repository.api}/pulls?${new URLSearchParams(query)}`;
|
|
45
50
|
|
|
46
51
|
do {
|
|
47
52
|
const provider = repository.provider;
|