createFlash(s__('Release|Something went wrong while saving the release details'));
})
checkForErrorsAsData(
deleteResponse,
'releaseAssetLinkDelete',
`Something went wrong while deleting release asset link for release with projectPath "${state.projectPath}", tagName "${state.tagName}", and link id "${id}"`,
);
};
/**
* Creates a single release link.
* Throws an error if any network or validation errors occur.
*/
constcreateReleaseLink=async({state,link})=>{
constcreateResponse=awaitgqClient.mutate({
mutation:createReleaseAssetLinkMutation,
variables:{
input:{
projectPath:state.projectPath,
tagName:state.tagName,
name:link.name,
url:link.url,
linkType:link.linkType.toUpperCase(),
},
},
});
checkForErrorsAsData(
createResponse,
'releaseAssetLinkCreate',
`Something went wrong while creating a release asset link for release with projectPath "${state.projectPath}" and tagName "${state.tagName}"`,