Skip to content

Commit

Permalink
chore: changes in commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadip007 committed Sep 22, 2023
1 parent 0f81f02 commit 2855962
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion services/gitlab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const gitlabPushRequest = async (payload) => {
return;
}
const envs = envList.filter((env) => env.cluster == 'preprod').map((property) => property.env);
const commentBody = `Kindly specify the names of env you want to specify in the given format [${envs.toString()}]`;
const commentBody = `📗 Kindly specify the names of environment you want to deploy [Registered Environment : ${envs.toString()}.].`;
await commentOnGitlabCommit(payload, projectId, commitId, commentBody);
};

Expand All @@ -42,6 +42,14 @@ const gitlabCommentOnCommit = async (payload) => {
const commitId = payload.commit.id;
const projectId = payload.project.id;
const commentBody = payload.object_attributes.description;
try {
await commentOnGitlabCommit(payload, projectId, commitId, "⌛️ We're Currently Processing the Deployment Request, Please wait for sometime.");
} catch (error) {
log.error('Error in gitlabCommentOnCommit');
log.error(error);
await commentOnGitlabCommit(payload, projectId, commitId, error.message);
return;
}
const commentDetails = await fetchCommitDetails(projectId, commitId);
const ref = commentDetails.last_pipeline.ref;
const deploymentEnvs = new Set();
Expand Down

0 comments on commit 2855962

Please sign in to comment.