Skip to content

Commit 4393578

Browse files
authoredSep 4, 2024··
fix: missing "PullRequest".canBeRebased field on GHES graphql api (#913)
* fix: remove `canBeRebased` from graphql request * test: modify tests
1 parent bb806af commit 4393578

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed
 

‎lib/success.js

-3
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ function buildAssociatedPRsQuery(shas) {
443443
nodes {
444444
${baseFields}
445445
mergeable
446-
canBeRebased
447446
changedFiles
448447
mergedAt
449448
isDraft
@@ -483,7 +482,6 @@ const loadSingleCommitAssociatedPRs = `#graphql
483482
nodes {
484483
${baseFields}
485484
mergeable
486-
canBeRebased
487485
changedFiles
488486
mergedAt
489487
isDraft
@@ -557,7 +555,6 @@ function buildIssuesOrPRsFromResponseNode(responseNodes, type = "ISSUE") {
557555
const prProps = {
558556
pull_request: true,
559557
mergeable: node.mergeable,
560-
rebaseable: node.canBeRebased,
561558
changed_files: node.changedFiles,
562559
commits: node.commits?.totalCount,
563560
merged_at: node.mergedAt,

‎test/success.test.js

-4
Original file line numberDiff line numberDiff line change
@@ -3149,7 +3149,6 @@ test('Add comment and label to found issues/associatedPR using the "successComme
31493149
milestone: null,
31503150
locked: false,
31513151
mergeable: "UNKNOWN",
3152-
canBeRebased: false,
31533152
changedFiles: 1,
31543153
mergedAt: "2024-06-30T14:44:05Z",
31553154
isDraft: false,
@@ -3198,7 +3197,6 @@ test('Add comment and label to found issues/associatedPR using the "successComme
31983197
milestone: null,
31993198
locked: false,
32003199
mergeable: "UNKNOWN",
3201-
canBeRebased: false,
32023200
changedFiles: 1,
32033201
mergedAt: "2024-06-30T14:44:05Z",
32043202
isDraft: false,
@@ -3385,7 +3383,6 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
33853383
milestone: null,
33863384
locked: false,
33873385
mergeable: "UNKNOWN",
3388-
canBeRebased: false,
33893386
changedFiles: 1,
33903387
mergedAt: "2024-07-13T09:58:50Z",
33913388
isDraft: false,
@@ -3432,7 +3429,6 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
34323429
milestone: null,
34333430
locked: false,
34343431
mergeable: "UNKNOWN",
3435-
canBeRebased: false,
34363432
changedFiles: 1,
34373433
mergedAt: "2024-07-13T09:58:50Z",
34383434
isDraft: false,

0 commit comments

Comments
 (0)
Please sign in to comment.