-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Gitlab regression in 2.5.0 #863
Comments
Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️ |
Hello, thanks for the issue! How do you set your GitLab remote? We now URL-encode the remote requests for GitLab which might be related. See: #742 |
Btw, was the GitLab integration working on |
I've provided the snippet above but I just set theses two variables :
I confirm in 2.5.0 output I can see the encoded URL
Yes it was, I just truncated it |
It seems correct, can you go to I tried to reproduce with the following command and it worked for me:
It first sends a request to:
After fetching the project id, the rest is like:
|
This is also affecting all github projects too:
|
Yes, I received the JSON response from the GitLab API with the repository information. Interestingly, when testing in the CLI with a personal token that has full access, it worked, but in CI with the I can't test with 2.6.0 for now due to #879 |
That looks odd, normally you wouldn't need to send project look up requests for GitHub. Are you sure you have your remote set up correctly?
I tested locally and it all seems fine to me. Can you point me to the GitLab repository where you are testing this, if possible?
No, not at all. There is only one significant change which is #742 and I guess that's not related. |
Yep, you can test this on any repo with a There should probably be some tests added for this to prevent breaking all github projects in the future. |
It's on a private gitlab instance but I got the same result on a gitlab public instance 2.5.0 fail (main branch) |
@dessalines that bug is now fixed in #885 @M0NsTeRRR it turns out the root of this issue is #782 In your example, there isn't any GitLab-related variables in To reproduce the error for
Now, when it comes to the actual permission issue, my guess is
So the solution would be generating a personal access token and using that instead :) Can you give it a try? |
I confirm it works with personal tokens: https://gitlab.com/M0NsTeRRR/git-cliff-debug/-/jobs/7915295382 It would be helpful to know which permission is missing on the For now, I only need to set the GitLab URL to display a compare link for the full changelog, like :
This rewrite avoid to use a personnal token :) In the documentation : https://git-cliff.org/docs/integration/gitlab#remote
This could be written as |
Very nice, thanks for debugging :)
Not sure if we can tweak the permissions on that token but yeah. It needs to be documented somewhere.
Awesome, added to tips & tricks :) |
Closing, let me know if there is anything else that I can do here :) |
Is there an existing issue for this?
Description of the bug
On a self-hosted GitLab instance, I encountered a 401 error with git-cliff 2.5.0 using the action below. It was working fine with version 2.4.0.
Steps To Reproduce
Using this action
Expected behavior
Changelog should be properly generated
Screenshots / Logs
2.5.0
2.4.0
Software information
Additional context
No response
The text was updated successfully, but these errors were encountered: