Add PR number to webhook payload

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-28 10:54:08 -07:00
parent 9dba679221
commit 3af5a90c93

View File

@ -134,6 +134,7 @@ jobs:
--arg commit_message "${{ github.event.head_commit.message || github.event.pull_request.title || 'N/A' }}" \ --arg commit_message "${{ github.event.head_commit.message || github.event.pull_request.title || 'N/A' }}" \
--arg author "${{ github.actor }}" \ --arg author "${{ github.actor }}" \
--arg event "${{ github.event_name }}" \ --arg event "${{ github.event_name }}" \
--arg pr_number "${{ github.event.pull_request.number || '' }}" \
--arg run_id "${{ github.run_id }}" \ --arg run_id "${{ github.run_id }}" \
--arg run_url "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ --arg run_url "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--arg overall_status "$OVERALL_STATUS" \ --arg overall_status "$OVERALL_STATUS" \
@ -145,6 +146,7 @@ jobs:
'{ '{
repository: $repo, repository: $repo,
branch: $branch, branch: $branch,
pull_request: (if $pr_number != "" then { number: ($pr_number | tonumber) } else null end),
commit: { commit: {
sha: $commit, sha: $commit,
short_sha: $commit_short, short_sha: $commit_short,