Skip to content

Commit

Permalink
also send commit timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Aug 15, 2019
1 parent 8d03613 commit beaa105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/server/test/support/helpers/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ function track (type, data) {
return Promise.join(
execa.stdout('git', ['rev-parse', 'HEAD']),
execa.stdout('git', ['log', 'HEAD', '-1', '|', 'tail', '-n1'], { shell: true }).then(_.trim),
execa.stdout('git', ['log', '-1', '--format=%cd']).then((d) => new Date(d).toISOString()),
execa.stdout('git', ['branch', '|', 'grep', '\\*', '|', 'cut', '-d', '\'', '\'', '-f2'], { shell: true }),
(commitSha, commitMessage, branch) => {
(commitSha, commitMessage, commitTimestamp, branch) => {
const body = {
type,
data: {
'Commit SHA': commitSha,
'Commit Message': commitMessage,
'Commit Timestamp': commitTimestamp,
'Branch': branch,
...data,
},
Expand Down

0 comments on commit beaa105

Please sign in to comment.