Skip to content

Commit

Permalink
fix: missing "PullRequest".canBeRebased field on GHES graphql api (#…
Browse files Browse the repository at this point in the history
…913)

* fix: remove `canBeRebased` from graphql request

* test: modify tests
  • Loading branch information
babblebey authored Sep 4, 2024
1 parent bb806af commit 4393578
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions lib/success.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ function buildAssociatedPRsQuery(shas) {
nodes {
${baseFields}
mergeable
canBeRebased
changedFiles
mergedAt
isDraft
Expand Down Expand Up @@ -483,7 +482,6 @@ const loadSingleCommitAssociatedPRs = `#graphql
nodes {
${baseFields}
mergeable
canBeRebased
changedFiles
mergedAt
isDraft
Expand Down Expand Up @@ -557,7 +555,6 @@ function buildIssuesOrPRsFromResponseNode(responseNodes, type = "ISSUE") {
const prProps = {
pull_request: true,
mergeable: node.mergeable,
rebaseable: node.canBeRebased,
changed_files: node.changedFiles,
commits: node.commits?.totalCount,
merged_at: node.mergedAt,
Expand Down
4 changes: 0 additions & 4 deletions test/success.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3149,7 +3149,6 @@ test('Add comment and label to found issues/associatedPR using the "successComme
milestone: null,
locked: false,
mergeable: "UNKNOWN",
canBeRebased: false,
changedFiles: 1,
mergedAt: "2024-06-30T14:44:05Z",
isDraft: false,
Expand Down Expand Up @@ -3198,7 +3197,6 @@ test('Add comment and label to found issues/associatedPR using the "successComme
milestone: null,
locked: false,
mergeable: "UNKNOWN",
canBeRebased: false,
changedFiles: 1,
mergedAt: "2024-06-30T14:44:05Z",
isDraft: false,
Expand Down Expand Up @@ -3385,7 +3383,6 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
milestone: null,
locked: false,
mergeable: "UNKNOWN",
canBeRebased: false,
changedFiles: 1,
mergedAt: "2024-07-13T09:58:50Z",
isDraft: false,
Expand Down Expand Up @@ -3432,7 +3429,6 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
milestone: null,
locked: false,
mergeable: "UNKNOWN",
canBeRebased: false,
changedFiles: 1,
mergedAt: "2024-07-13T09:58:50Z",
isDraft: false,
Expand Down

0 comments on commit 4393578

Please sign in to comment.