Commit b5064aa8 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

Fix gitlab version link

parent 94b09a07
......@@ -236,7 +236,12 @@ function sendNotificationEmail(release, callback) {
}
}));
const versionLink = `https://github.com/${project.name}/releases/tag/${release.version}`;
let versionLink;
if (project.type === database.PROJECT_TYPE_GITHUB) {
versionLink = `https://github.com/${project.name}/releases/tag/${release.version}`;
} else if (project.type === database.PROJECT_TYPE_GITLAB) {
versionLink = `${project.origin}/${project.name}/-/tags/${release.version}`;
}
const settingsLink = process.env.CLOUDRON_APP_ORIGIN || '';
var mail = {
......
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