Skip to content

Commit

Permalink
Timestamping for comment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
eagraf committed Nov 17, 2020
1 parent d1cd027 commit 656d110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 656d110

Please sign in to comment.