Skip to content

Commit b286465

Browse files
authored
Rename the bot, and add some docs. (#101)
1 parent 60eed64 commit b286465

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

bin/publish-coverage

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ echo "Using temporary directory: $temp_dir"
1919
cd "$temp_dir"
2020

2121
# Clone directory structure of the most recent commit of one
22-
# branch (main). Don't fetch any regular files.
22+
# branch (gh-pages). Don't fetch any regular files.
2323
mkdir dd-trace-cpp-coverage
2424
cd dd-trace-cpp-coverage
2525

2626
git init
2727

28-
git config user.email "david.goffredo@datadoghq.com"
29-
git config user.name "David Goffredo (via script)"
28+
git config user.email "damien.mehala@datadoghq.com"
29+
git config user.name "Damien Mehala (via script)"
3030

3131
git remote add origin '[email protected]:DataDog/dd-trace-cpp-coverage.git'
3232
branch=gh-pages
@@ -51,6 +51,15 @@ hex_encode() {
5151

5252
cd "$tracer_dir"
5353

54+
# Summary information about the coverage report is encoded in the directory name
55+
# that contains the report.
56+
#
57+
# It's a bit silly, but it has a couple of advantages:
58+
#
59+
# - Concurrent commits are trivial to merge, since they involve git trees only.
60+
# - The UI (browser) script that tabulates the summary information need not
61+
# fetch any actual files: the directory listing is sufficient.
62+
5463
commit_time_iso=$(git show -s --format=%cI)
5564
commit_hash_short=$(git rev-parse HEAD | head -c 7)
5665
commit_branch=$(git branch --show-current)

0 commit comments

Comments
 (0)