-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cml-pr name branch #553
cml-pr name branch #553
Conversation
TypeError: Cannot read property 'split' of undefined
at branch_name (/usr/local/lib/node_modules/@dvcorg/cml/src/drivers/github.js:22:24)
at Github.get branch [as branch] (/usr/local/lib/node_modules/@dvcorg/cml/src/drivers/github.js:298:12)
at CML.branch (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:88:13)
at CML.pr_create (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:267:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async run (/usr/local/lib/node_modules/@dvcorg/cml/bin/cml-pr.js:15:10) Running locally in the absence of the |
Base branches with slashes in their names, like GITHUB_REF=experiment/break-everything cml-pr ··· {
status: 422,
headers: {···},
request: {
method: 'POST',
url: 'https://api.github.com/repos/···/···/pulls',
headers: {···},
body: '{"head":"break-everything-cml-pr-···","base":"break-everything","title":"CML PR for break-everything 1a6ba96f","body":"\\nAutomated commits for https://github.com/···/···/commit/··· created by CML.\\n "}',
request: {···}
},
errors: [ { resource: 'PullRequest', field: 'base', code: 'invalid' } ],
documentation_url: 'https://docs.github.com/rest/reference/pulls#create-a-pull-request'
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Nevertheless, the original error still is a mystery.
They should? Sounds like a bug |
@casperdcl @0x2b3bfa0 only happens apparently with refs/heads/ |
They should. Period. 😉 |
Apparently, because I can't reproduce it with a minimal example. |
GH gives branch names with all the ref
/refs/heads/branch
using branch name like this seems possible through their api but is breaking later on their UIcloses #551