Skip to content

Commit

Permalink
Merge pull request #1990 from DARMA-tasking/1940-add-commit-date-in-c…
Browse files Browse the repository at this point in the history
…i-comment

#1940: add commit date in CI results comment
  • Loading branch information
PhilMiller authored Oct 18, 2022
2 parents 207caf5 + 708fc33 commit 8315da3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/report_logs_in_comment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ fi

# Build comment
commit_sha="$(git log --skip=1 -1 --pretty=format:%H)"
commit_date="$(TZ=UTC0 git show -s --format=%cd --date=format-local:'%Y-%m-%d %H:%M:%S' "$commit_sha")"
build_link='[Build log](https://dev.azure.com/DARMA-tasking/DARMA/_build/results?buildId='"$build_id"'&view=logs&j='"$job_id"'&t='"$task_id)"
comment_body="Build for $commit_sha\n\n"'```'"\n$val\n"'```'"\n\n$build_link"
comment_body="Build for $commit_sha ($commit_date UTC)\n\n"'```'"\n$val\n"'```'"\n\n$build_link"

# Fix new lines
new_line="\n"
Expand Down

0 comments on commit 8315da3

Please sign in to comment.