Skip to content

CI failing with error - Field 'canBeRebased' doesn't exist on type 'PullRequest' #910

@tejasbagal1

Description

@tejasbagal1

Hello Team,
we use the latest version of semantic-release in our Jenkins pipeline.
After the recent update #874 in this repo, our build is failing with the below error

3:18:06 PM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/github"
[2024-09-02T19:18:07.347Z] [3:18:06 PM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/exec"
[2024-09-02T19:18:07.347Z] [3:18:06 PM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/exec"
[2024-09-02T19:18:07.347Z] [3:18:06 PM] [semantic-release] › ℹ  Start step "success" of plugin "@semantic-release/github"
[2024-09-02T19:18:08.812Z] [3:18:08 PM] [semantic-release] › ✘  Failed step "success" of plugin "@semantic-release/github"
[2024-09-02T19:18:08.812Z] [3:18:08 PM] [semantic-release] › ℹ  Start step "success" of plugin "@semantic-release/exec"
[2024-09-02T19:18:08.812Z] [3:18:08 PM] [semantic-release] › ✔  Completed step "success" of plugin "@semantic-release/exec"
[2024-09-02T19:18:08.812Z] [3:18:08 PM] [semantic-release] › ✘  An error occurred while running semantic-release: Error: Field 'canBeRebased' doesn't exist on type 'PullRequest'
[2024-09-02T19:18:08.813Z]     at file:///usr/local/lib/node_modules/semantic-release/node_modules/aggregate-error/index.js:23:26
[2024-09-02T19:18:08.813Z]     at Array.map (<anonymous>)
[2024-09-02T19:18:08.813Z]     at new AggregateError (file:///usr/local/lib/node_modules/semantic-release/node_modules/aggregate-error/index.js:16:19)
[2024-09-02T19:18:08.813Z]     at file:///usr/local/lib/node_modules/semantic-release/lib/plugins/pipeline.js:55:13
[2024-09-02T19:18:08.813Z]     at async pluginsConfigAccumulator.<computed> [as success] (file:///usr/local/lib/node_modules/semantic-release/lib/plugins/index.js:87:11)
[2024-09-02T19:18:08.813Z]     at async run (file:///usr/local/lib/node_modules/semantic-release/index.js:218:3)
[2024-09-02T19:18:08.813Z]     at async Module.default (file:///usr/local/lib/node_modules/semantic-release/index.js:278:22)
[2024-09-02T19:18:08.814Z]     at async default (file:///usr/local/lib/node_modules/semantic-release/cli.js:55:5) {
[2024-09-02T19:18:08.814Z]   path: [
[2024-09-02T19:18:08.814Z]     'query getAssociatedPRs',
[2024-09-02T19:18:08.814Z]     'repository',
[2024-09-02T19:18:08.814Z]     'commit7c472f',
[2024-09-02T19:18:08.814Z]     '... on Commit',
[2024-09-02T19:18:08.814Z]     'associatedPullRequests',
[2024-09-02T19:18:08.814Z]     'nodes',
[2024-09-02T19:18:08.814Z]     'canBeRebased'
[2024-09-02T19:18:08.814Z]   ],
[2024-09-02T19:18:08.814Z]   extensions: {
[2024-09-02T19:18:08.814Z]     code: 'undefinedField',
[2024-09-02T19:18:08.814Z]     typeName: 'PullRequest',
[2024-09-02T19:18:08.814Z]     fieldName: 'canBeRebased'
[2024-09-02T19:18:08.814Z]   },
[2024-09-02T19:18:08.814Z]   locations: [ { line: 61, column: 19 } ],
[2024-09-02T19:18:08.814Z]   pluginName: '@semantic-release/github'
[2024-09-02T19:18:08.814Z] }
[2024-09-02T19:18:08.814Z] AggregateError: 
[2024-09-02T19:18:08.814Z]     Error: Field 'canBeRebased' doesn't exist on type 'PullRequest'
[2024-09-02T19:18:08.814Z]         at Array.map (<anonymous>)
[2024-09-02T19:18:08.814Z]         at file:///usr/local/lib/node_modules/semantic-release/lib/plugins/pipeline.js:55:13
[2024-09-02T19:18:08.815Z]         at async pluginsConfigAccumulator.<computed> [as success] (file:///usr/local/lib/node_modules/semantic-release/lib/plugins/index.js:87:11)
[2024-09-02T19:18:08.815Z]         at async run (file:///usr/local/lib/node_modules/semantic-release/index.js:218:3)
[2024-09-02T19:18:08.815Z]         at async Module.default (file:///usr/local/lib/node_modules/semantic-release/index.js:278:22)
[2024-09-02T19:18:08.815Z]         at async default (file:///usr/local/lib/node_modules/semantic-release/cli.js:55:5)
[2024-09-02T19:18:08.815Z]     at file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/lib/plugins/pipeline.js:55:13
[2024-09-02T19:18:08.815Z]     at async pluginsConfigAccumulator.<computed> [as success] (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/lib/plugins/index.js:87:11)
[2024-09-02T19:18:08.816Z]     at async run (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/index.js:218:3)
[2024-09-02T19:18:08.816Z]     at async Module.default (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/index.js:278:22)
[2024-09-02T19:18:08.816Z]     at async default (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/cli.js:55:5) {
[2024-09-02T19:18:08.816Z]   errors: [
[2024-09-02T19:18:08.816Z]     Error: Field 'canBeRebased' doesn't exist on type 'PullRequest'
[2024-09-02T19:18:08.816Z]         at file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/node_modules/�[4maggregate-error�[24m/index.js:23:26
[2024-09-02T19:18:08.816Z]         at Array.map (<anonymous>)
[2024-09-02T19:18:08.816Z]         at new AggregateError (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/node_modules/�[4maggregate-error�[24m/index.js:16:19)
[2024-09-02T19:18:08.816Z]         at file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/lib/plugins/pipeline.js:55:13
[2024-09-02T19:18:08.817Z]         at async pluginsConfigAccumulator.<computed> [as success] (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/lib/plugins/index.js:87:11)
[2024-09-02T19:18:08.817Z]         at async run (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/index.js:218:3)
[2024-09-02T19:18:08.817Z]         at async Module.default (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/index.js:278:22)
[2024-09-02T19:18:08.817Z]         at async default (file:///usr/local/lib/node_modules/�[4msemantic-release�[24m/cli.js:55:5) {
[2024-09-02T19:18:08.817Z]       path: �[36m[Array]�[39m,
[2024-09-02T19:18:08.817Z]       extensions: �[36m[Object]�[39m,
[2024-09-02T19:18:08.817Z]       locations: �[36m[Array]�[39m,
[2024-09-02T19:18:08.817Z]       pluginName: �[32m'@semantic-release/github'�[39m
[2024-09-02T19:18:08.818Z]     }
[2024-09-02T19:18:08.818Z]   ]
[2024-09-02T19:18:08.870Z] }
Failed to complete release!

We are on GitHub Enterprise Server 3.9.19

Please assist if any changes needs to be made to fix this. Thank you!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions