Commit 98145c11 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'nfriend-convert-release-data-to-snake-case' into 'master'

Convert release props to snake_case before submitting to API

See merge request gitlab-org/gitlab!33434
parents 78b6c3e7 9b51b782
......@@ -57,13 +57,18 @@ export const updateRelease = ({ dispatch, state, getters }) => {
const { release } = state;
const milestones = release.milestones ? release.milestones.map(milestone => milestone.title) : [];
const updatedRelease = convertObjectPropsToSnakeCase(
{
name: release.name,
description: release.description,
milestones,
},
{ deep: true },
);
return (
api
.updateRelease(state.projectId, state.tagName, {
name: release.name,
description: release.description,
milestones,
})
.updateRelease(state.projectId, state.tagName, updatedRelease)
/**
* Currently, we delete all existing links and then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment