Skip to content

TypeError is raised when using fast-forward merge #176

@aidan-gallagher

Description

@aidan-gallagher

Describe the bug
Does not work on self hosted Gitlab instance. TypeError is raised.

To Reproduce

$ git-backporting -tb 202411 -pr https://privategitlab.org/org/cf-sonic-net/cf-sonic-buildimage/-/merge_requests/111 -a ************
[DEBUG] Setting up gitlab client: apiUrl=https://privategitlab.org/api/v4, token=****
[DEBUG] Parsing configs..
[DEBUG] Fetching pull request /projects/org%2Fcf-sonic-net%2Fcf-sonic-buildimage/merge_requests/111
[ERROR] TypeError: Cannot read properties of null (reading 'slice')
[INFO ] Process failed

Expected behavior
I expected it to not fail.

Additional context
If I take the URL it is trying to reach https://privategitlab.org/api/v4/projects/org%2Fcf-sonic-net%2Fcf-sonic-buildimage/merge_requests/111 and paste it into my browser I see Gitlab JSON.

I can also get the same data via the CLI by running curl -H "PRIVATE-TOKEN: *********" "https://privategitlab.org/api/v4/projects/org%2Fcf-sonic-net%2Fcf-sonic-buildimage/merge_requests/111"

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions