@@ -2,6 +2,7 @@ import * as core from '@actions/core'
22import dedent from 'dedent-js'
33import { COLORS } from './colors'
44import { API_HEADERS } from './api-headers'
5+ import { timestamp } from './timestamp'
56
67const thumbsUp = '+1'
78const thumbsDown = '-1'
@@ -16,7 +17,8 @@ export async function deploymentConfirmation(context, octokit, data) {
1617
1718 In order to proceed with this deployment, __${ context . actor } __ must react to this comment with either a 👍 or a 👎.
1819
19- - Commit: \`${ data . sha } \`
20+ - Commit: [\`${ data . sha } \`](${ data . commit_html_url } )
21+ - Committer: \`${ data . committer } \` - **${ data . isVerified ? 'verified' : 'unverified' } **
2022 - Environment: \`${ data . environment } \`
2123 - Branch: \`${ data . ref } \`
2224 - Deployment Type: \`${ data . deploymentType } \`
@@ -40,7 +42,9 @@ export async function deploymentConfirmation(context, octokit, data) {
4042 "git": {
4143 "branch": "${ data . ref } ",
4244 "commit": "${ data . sha } ",
43- "verified": ${ data . isVerified }
45+ "verified": ${ data . isVerified } ,
46+ "committer": "${ data . committer } ",
47+ "html_url": "${ data . commit_html_url } "
4448 },
4549 "context": {
4650 "actor": "${ context . actor } ",
@@ -102,7 +106,7 @@ export async function deploymentConfirmation(context, octokit, data) {
102106 await octokit . rest . issues . updateComment ( {
103107 ...context . repo ,
104108 comment_id : commentId ,
105- body : `${ message } \n\n✅ Deployment confirmed by __${ context . actor } __.` ,
109+ body : `${ message } \n\n✅ Deployment confirmed by __${ context . actor } __ at \` ${ timestamp ( ) } \` UTC .` ,
106110 headers : API_HEADERS
107111 } )
108112
@@ -116,7 +120,7 @@ export async function deploymentConfirmation(context, octokit, data) {
116120 await octokit . rest . issues . updateComment ( {
117121 ...context . repo ,
118122 comment_id : commentId ,
119- body : `${ message } \n\n❌ Deployment rejected by __${ context . actor } __.` ,
123+ body : `${ message } \n\n❌ Deployment rejected by __${ context . actor } __ at \` ${ timestamp ( ) } \` UTC .` ,
120124 headers : API_HEADERS
121125 } )
122126
@@ -149,7 +153,7 @@ export async function deploymentConfirmation(context, octokit, data) {
149153 await octokit . rest . issues . updateComment ( {
150154 ...context . repo ,
151155 comment_id : commentId ,
152- body : `${ message } \n\n⏱️ Deployment confirmation timed out after \`${ data . deployment_confirmation_timeout } \` seconds. The deployment request has been rejected.` ,
156+ body : `${ message } \n\n⏱️ Deployment confirmation timed out after \`${ data . deployment_confirmation_timeout } \` seconds. The deployment request has been rejected at \` ${ timestamp ( ) } \` UTC .` ,
153157 headers : API_HEADERS
154158 } )
155159
0 commit comments