diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c18edff..f083c42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,12 +43,14 @@ jobs: set -euo pipefail short_sha="${HEAD_SHA:0:7}" + commit_subject="$(git log -1 --format=%s "$HEAD_SHA")" post_content="$(jq -cn \ - --arg commit_url "$COMMIT_URL" \ --arg short_sha "$short_sha" \ + --arg commit_subject "$commit_subject" \ + --arg commit_url "$COMMIT_URL" \ '{ zh_cn: { - title: "stargate-next main 分支已更新", + title: "stargate-next main 分支已更新 #\($short_sha)", content: [[ { tag: "text", diff --git a/.github/workflows/pr-feishu-msg.yml b/.github/workflows/pr-feishu-msg.yml index 010bded..122871d 100644 --- a/.github/workflows/pr-feishu-msg.yml +++ b/.github/workflows/pr-feishu-msg.yml @@ -51,7 +51,7 @@ jobs: --arg pr_url "$PR_URL" \ '{ zh_cn: { - title: "stargate-next 新的合并请求", + title: "stargate-next 新的合并请求 #\($pr_number)", content: [[{ tag: "a", text: "\($pr_title) #\($pr_number)",