code-review
code-review copied to clipboard
code-review does not respect code-review-gitlab-base-url
Describe the bug code-review does not respect when the below variables are set. This seems to apply to github and gitlab custom instances as discovered by @gagbo in the doom emacs discord.
(setq code-review-gitlab-base-url "custom.url")
(setq code-review-gitlab-host "remaining.com/api")
(setq code-review-gitlab-graphql-host "remaining.com/api")
To Reproduce Steps to reproduce the behavior: Add this in your init.el
(setq code-review-gitlab-base-url "custom.url")
(setq code-review-gitlab-host "remaining.com/api")
(setq code-review-gitlab-graphql-host "remaining.com/api")
- Go to magit-status
- Open a MR that is yet to be merged.
- Execute
code-review-forge-pr-at-point - See the error
code-reviewprepends gitlab. even whencode-review-gitlab-base-urlis set.
Expected behavior Respect and concatenate code-review-gitlab-base-url with host and graphql-host properly.
Screenshots

Desktop (please complete the following information):
- OS: ArchLinux
- emacs version: emacs-pgtk-native-comp
- Latest doom emacs version
This might just be a cosmetic issue, see issue #48. Just be stubborn and proceed; I had to enter a user and confirm "set globally" three times. See the linked issue.
Thanks! I missed the issue you mentioned. The behavior you describe seems like mine, still having unexpected behavior makes the package counterintuitive to use. I believe if the package uses the variables mentioned in my first post, things will work as expected as in magit-forge.