-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
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 workingSomething isn't workinggood first issueGood for newcomersGood for newcomers