Skip to content

Commit bee01c9

Browse files
author
neil
committed
add comment
1 parent 5cbae50 commit bee01c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/wiki-monitor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
page_sha=$(jq -r '.pages[0].sha' "$GITHUB_EVENT_PATH")
2323
page_url=$(jq -r '.pages[0].html_url' "$GITHUB_EVENT_PATH")
2424
page_action=$(jq -r '.pages[0].action' "$GITHUB_EVENT_PATH")
25+
page_summary=$(jq -r '.pages[0].summary' "$GITHUB_EVENT_PATH")
2526
now="$(date '+%Y-%m-%d %H:%M:%S')"
2627
2728
cd wiki
@@ -35,9 +36,11 @@ jobs:
3536
{
3637
echo "Wiki edited"
3738
echo -n "User: "
38-
echo "[$actor]($sender_url)"
39+
echo "@$actor [$actor]($sender_url)"
3940
echo "Time: $now"
4041
echo "Page: [$page_name]($page_url) (Action: $page_action)"
42+
echo "Comment: $page_summary"
43+
echo "[Click here to Revert](${page_url}/_history)"
4144
echo ""
4245
echo "----"
4346
echo "### diff:"

0 commit comments

Comments
 (0)