This commit is contained in:
parent
e12f183968
commit
18168b07bb
|
@ -152,21 +152,20 @@ module.exports = Self => {
|
|||
|
||||
formatDesc += `*${appName.toUpperCase()}* v.${toVersion} `;
|
||||
|
||||
let fromBranch = await models.MdbVersionTree.find({
|
||||
const oldVersion = await models.MdbVersionTree.findOne({
|
||||
where: {version: fromVersion},
|
||||
fields: ['branchFk']
|
||||
});
|
||||
fromBranch = fromBranch[0].branchFk;
|
||||
}, myOptions);
|
||||
|
||||
if (branch == fromBranch)
|
||||
if (branch == oldVersion.branchFk)
|
||||
formatDesc += `[*${branch}*]: `;
|
||||
else
|
||||
formatDesc += `[*${fromBranch}* » *${branch}*]: `;
|
||||
formatDesc += `[*${oldVersion.branchFk}* » *${branch}*]: `;
|
||||
|
||||
const params = await models.MdbConfig.find({});
|
||||
const issueTrackerUrl = params[0].issueTrackerUrl;
|
||||
const issueNumberRegex = params[0].issueNumberRegex;
|
||||
const chatDestination = params[0].chatDestination;
|
||||
const params = await models.MdbConfig.findOne(myOptions);
|
||||
const issueTrackerUrl = params.issueTrackerUrl;
|
||||
const issueNumberRegex = params.issueNumberRegex;
|
||||
const chatDestination = params.chatDestination;
|
||||
|
||||
const regex = new RegExp(issueNumberRegex, 'g');
|
||||
formatDesc += description.replace(regex, (match, issueId) => {
|
||||
|
|
Loading…
Reference in New Issue