@@ -32850,21 +32850,22 @@ function runPushAlert(args) {
32850
32850
const commit = process.env.GITHUB_SHA;
32851
32851
const reviewed = yield verifyCommitReview(client, commit);
32852
32852
if (reviewed === false) {
32853
- const commitDetails = yield client.git .getCommit({
32853
+ const commitDetails = yield client.repos .getCommit({
32854
32854
repo: github.context.repo.repo,
32855
32855
owner: github.context.repo.owner,
32856
- commit_sha : commit,
32856
+ ref : commit,
32857
32857
});
32858
32858
//notify channel
32859
32859
var github_commit_url = `https://github.com/${github.context.repo.owner}/${github.context.repo.repo}/commit/${commit}`;
32860
- const message = `:red-c: @ channel Unreviewed Commit in \`${github.context.repo.owner}/${github.context.repo.repo}\`\n` +
32860
+ const message = `:red-c: <! channel> Unreviewed Commit in \`${github.context.repo.owner}/${github.context.repo.repo}\`\n` +
32861
32861
'\n' +
32862
32862
`*Commit:* <${github_commit_url}|${commit.slice(0, 6)}>\n` +
32863
- `*Author:* <https://github.com/${encodeURIComponent(commitDetails.data.author.name)}|${safeSlackString(commitDetails.data.author.name)}>\n` +
32864
- `*Committer:* <https://github.com/${encodeURIComponent(commitDetails.data.committer.name)}|${safeSlackString(commitDetails.data.committer.name)}>\n` +
32863
+ `*Author:* <https://github.com/${encodeURIComponent(commitDetails.data.author.login)}|${safeSlackString(commitDetails.data.commit.author.name)}>\n` +
32864
+ `*Committer:* <https://github.com/${encodeURIComponent(commitDetails.data.committer.login)}|${safeSlackString(commitDetails.data.commit.committer.name)}>\n` +
32865
+ `*Verified Commit:* ${commitDetails.data.commit.verification.verified ? ':check:' : ':red-bang:'} _${safeSlackString(commitDetails.data.commit.verification.reason)}_\n` +
32865
32866
'*Message:*\n' +
32866
- '```\n';
32867
- safeSlackString(commitDetails.data.message) +
32867
+ '```\n' +
32868
+ safeSlackString(commitDetails.data.commit .message) +
32868
32869
'\n```';
32869
32870
const req = request.post(args.slackEndpoint, {
32870
32871
json: {
0 commit comments