--- verify: hmac: header: X-Hub-Signature-256 prefix: "sha256=" secret: $GITHUB_WEBHOOK_SECRET payload: contentType: json --- You have received a GitHub webhook from the **{{ payload.repository.full_name }}** repository. Event: `{{ headers["x-github-event"] }}` {% if headers["x-github-event"] == "push" %} **{{ payload.pusher.name }}** pushed {{ payload.commits | size }} commit(s) to `{{ payload.ref }}`: {% for commit in payload.commits %} - `{{ commit.id | slice: 0, 7 }}` {{ commit.message }} — {{ commit.author.name }} {% endfor %} Summarize what changed across these commits and whether any follow-up is warranted (e.g. deployment, documentation update, or review). {% endif %} {% if headers["x-github-event"] == "pull_request" %} Pull request **{{ payload.action }}**: [#{{ payload.pull_request.number }} {{ payload.pull_request.title }}]({{ payload.pull_request.html_url }}) - Opened by: **{{ payload.pull_request.user.login }}** - Merging `{{ payload.pull_request.head.ref }}` → `{{ payload.pull_request.base.ref }}` - Status: {{ payload.pull_request.state }}{% if payload.pull_request.draft %} (draft){% endif %} {{ payload.pull_request.body }} Summarize the intent of this pull request and note any action required based on its current state. {% endif %} {% if headers["x-github-event"] == "issues" %} Issue **{{ payload.action }}**: [#{{ payload.issue.number }} {{ payload.issue.title }}]({{ payload.issue.html_url }}) - Opened by: **{{ payload.issue.user.login }}** - Labels: {% for label in payload.issue.labels %}{{ label.name }}{% unless forloop.last %}, {% endunless %}{% endfor %} {{ payload.issue.body }} Summarize this issue and determine whether any immediate action or response is needed. {% endif %} {% if headers["x-github-event"] == "pull_request_review" %} **{{ payload.review.user.login }}** submitted a **{{ payload.review.state }}** review on [#{{ payload.pull_request.number }} {{ payload.pull_request.title }}]({{ payload.pull_request.html_url }}). {{ payload.review.body }} Note the outcome of this review and whether the pull request is now ready to merge, needs further changes, or requires discussion. {% endif %}