Skip to content
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

Fix encoding option value for gitlab commit creation #7850

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

andrcuns
Copy link
Contributor

This fixes broken commit creation for gitlab that was introduced by: #7381

The issue here is that gitlab api only supports 2 encoding values, base64 and text. Current implementation will try to pass utf-8 as indicated by unit tests which will raise an error like: Server responded with code 400, message: actions[0][encoding] does not have a valid value, actions[1][encoding] does not have a valid value.

Gitlab api doc for refernce: https://docs.gitlab.com/ee/api/commits.html#create-a-commit-with-multiple-files-and-actions

@andrcuns andrcuns requested a review from a team as a code owner August 19, 2023 09:13
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@deivid-rodriguez deivid-rodriguez merged commit b19b5ca into dependabot:main Aug 22, 2023
90 checks passed
brettfo pushed a commit to brettfo/dependabot-core that referenced this pull request Oct 11, 2023
Fix encoding option value for gitlab commit creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants