1
0
mirror of synced 2025-12-22 03:16:52 -05:00

merge_group: add more data to webhooks. (#31644)

This commit is contained in:
Mike McQuaid
2022-10-14 18:40:37 +01:00
committed by GitHub
parent 1ca93007e6
commit 3c9944c9a3
2 changed files with 19 additions and 2 deletions

View File

@@ -749,7 +749,9 @@ Key | Type | Description
`merge_group`|`object` | The merge group. `merge_group`|`object` | The merge group.
`merge_group[head_sha]`|`string` | The SHA of the merge group. `merge_group[head_sha]`|`string` | The SHA of the merge group.
`merge_group[head_ref]`|`string` | The full ref of the merge group. `merge_group[head_ref]`|`string` | The full ref of the merge group.
`merge_group[base_sha]`|`string` | The SHA of the merge group's parent commit.
`merge_group[base_ref]`|`string` | The full ref of the branch the merge group will be merged into. `merge_group[base_ref]`|`string` | The full ref of the branch the merge group will be merged into.
`merge_group[head_commit]`|`object` | An expanded representation of the `head_sha` commit.
{% data reusables.webhooks.repo_desc %} {% data reusables.webhooks.repo_desc %}
{% data reusables.webhooks.org_desc %} {% data reusables.webhooks.org_desc %}
{% data reusables.webhooks.app_desc %} {% data reusables.webhooks.app_desc %}

View File

@@ -3,7 +3,22 @@
"merge_group": { "merge_group": {
"head_sha": "2ffea6db159f6b6c47a24e778fb9ef40cf6b1c7d", "head_sha": "2ffea6db159f6b6c47a24e778fb9ef40cf6b1c7d",
"head_ref": "refs/heads/gh-readonly-queue/main/pr-104-929f8209d40f77f4abc622a499c93a83babdbe64", "head_ref": "refs/heads/gh-readonly-queue/main/pr-104-929f8209d40f77f4abc622a499c93a83babdbe64",
"base_ref": "refs/heads/main" "base_sha": "380387fbc80638b734a49e1be1c4dfec1c01b33c",
"base_ref": "refs/heads/main",
"head_commit": {
"id": "ec26c3e57ca3a959ca5aad62de7213c562f8c821",
"tree_id": "31b122c26a97cf9af023e9ddab94a82c6e77b0ea",
"message": "Merge pull request #2048 from octo-repo/update-readme\n\nUpdate README.md",
"timestamp": "2019-05-15T15:20:30Z",
"author": {
"name": "Codertocat",
"email": "21031067+Codertocat@users.noreply.github.com"
},
"committer": {
"name": "Codertocat",
"email": "21031067+Codertocat@users.noreply.github.com"
}
}
}, },
"repository": { "repository": {
"id": 17273051, "id": 17273051,
@@ -137,4 +152,4 @@
"id": 1, "id": 1,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=" "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI="
} }
} }