Unable to use backport

Open
#13 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
git, github, javascript
Domain
cli, release

Research direction

Reproduce the three backport commands listed in the issue, then inspect the command’s argument handling and the referenced @octokit/rest validation.js location for the number error. Done means the intended backport from pull request 12128 to release-chai runs without the reported errors.

Written by the indexing model from the issue text.

Description

I'm trying to backport https://github.com/mapbox/mapbox-gl-native/pull/12128 to release-chai, but not able to get it working. Probably doing something very trivial wrong here. These are the commands I tried:

backport ddc4b03c3416f1442a1e177ff5f7de7bf2a8e707 release-chai

{ Error: 'number' cannot be null
at values.forEach (/usr/local/lib/node_modules/@mapbox/github-release-tools/node_modules/@octokit/rest/lib/plugins/endpoint-methods/validate.js:75:15)
at Array.forEach (native)
at Object.keys.forEach.parameterName (/usr/local/lib/node_modules/@mapbox/github-release-tools/node_modules/@octokit/rest/lib/plugins/endpoint-methods/validate.js:53:12)
at Array.forEach (native)
at validate (/usr/local/lib/node_modules/@mapbox/github-release-tools/node_modules/@octokit/rest/lib/plugins/endpoint-methods/validate.js:31:31)
at
at process._tickCallback (internal/process/next_tick.js:169:7)
at Function.Module.runMain (module.js:607:11)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
name: 'HttpError',
code: 400,
status: 'Bad Request',
headers: undefined }

backport https://github.com/mapbox/mapbox-gl-native/pull/12128 release-chai

{ Error: no reference found for shorthand 'release-chai' errno: -3, errorFunction: 'Reference.dwim' }

backport #12128 release-chai

Not enough non-option arguments: got 0, need at least 2

Dominant language
JavaScript
Stars
16
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapbox/github-release-tools

All issues in mapbox/github-release-tools

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.