Skip to content

Commit 51f8f23

Browse files
authored
devops(flakiness): collect more commit information (#4315)
Collect commit title and author details.
1 parent e3b12b0 commit 51f8f23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/upload_flakiness_dashboard.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ fi
4242

4343
export BUILD_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
4444
export COMMIT_SHA=$(git rev-parse HEAD)
45+
export COMMIT_TITLE=$(git show -s --format=%s HEAD)
46+
export COMMIT_AUTHOR_NAME=$(git show -s --format=%an HEAD)
47+
export COMMIT_AUTHOR_EMAIL=$(git show -s --format=%ae HEAD)
4548
export COMMIT_TIMESTAMP=$(git show -s --format=%ct HEAD)
4649

4750
export HOST_OS_NAME="$(uname)"
@@ -62,6 +65,9 @@ EMBED_METADATA_SCRIPT=$(cat <<EOF
6265
osVersion: process.env.HOST_OS_VERSION,
6366
commitSHA: process.env.COMMIT_SHA,
6467
commitTimestamp: process.env.COMMIT_TIMESTAMP,
68+
commitTitle: process.env.COMMIT_TITLE,
69+
commitAuthorName: process.env.COMMIT_AUTHOR_NAME,
70+
commitAuthorEmail: process.env.COMMIT_AUTHOR_EMAIL,
6571
};
6672
console.log(JSON.stringify(json));
6773
EOF

0 commit comments

Comments
 (0)