Skip to content
Snippets Groups Projects

Fetch tag notes on release refresh

Merged Andrew Fontaine requested to merge afontaine/429809/fix into master
2 unresolved threads
Files
2
@@ -170,13 +170,11 @@ export const releaseDeleteMutationVariables = (state) => ({
@@ -170,13 +170,11 @@ export const releaseDeleteMutationVariables = (state) => ({
},
},
});
});
export const formattedReleaseNotes = ({
export const formattedReleaseNotes = (
includeTagNotes,
{ includeTagNotes, release: { description, tagMessage }, tagNotes },
release: { description, tagMessage },
{ isNewTag },
tagNotes,
) => {
showCreateFrom,
const notes = isNewTag ? tagMessage : tagNotes;
}) => {
const notes = showCreateFrom ? tagMessage : tagNotes;
return includeTagNotes && notes
return includeTagNotes && notes
? `${description}\n\n### ${s__('Releases|Tag message')}\n\n${notes}\n`
? `${description}\n\n### ${s__('Releases|Tag message')}\n\n${notes}\n`
: description;
: description;
Loading