From 656d1109c0d29b6f459dc59f2e5f0db2ff8053db Mon Sep 17 00:00:00 2001 From: ethan Date: Tue, 17 Nov 2020 18:20:47 -0500 Subject: [PATCH] Timestamping for comment updates --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 497a900..1eb35fa 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -47,5 +47,6 @@ com = coms.find { |com| com["body"].start_with?(prefix) } if com == nil github.add_comment(repo, pr_number, prefix + "\n\n" + message) else - com = github.update_comment(repo, com["id"], com["body"] + "\n\n" + message) + cur_time = Time.new + com = github.update_comment(repo, com["id"], com["body"] + "\n\nUpdate on " + cur_time.inspect + "\n\n" + message) end