You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP hook support was added to GitHub Copilot CLI in v1.0.35 (released 2026-04-21). Hooks can now use "type": "http" to POST JSON payloads directly to a URL instead of running a local shell command — useful for integrating with external webhooks, notification services, and custom backends without needing curl or a script.
Rewrote the Event Configuration section to document both hook types ("command" and "http")
Split into two subsections — Command Hooks and HTTP Hooks — each with their own configuration reference
Added an HTTP hook configuration example with url and timeoutSec fields
Added a practical Slack webhook example using "type": "http"
Updated the Notification on Session End practical example to show both approaches (HTTP hook for simplicity, command hook for more control)
Updated the intro paragraph to reflect that hooks can run shell commands or POST to HTTP endpoints
Updated lastUpdated to 2026-04-21
Source announcements
Copilot CLI v1.0.35-0 release notes: "Add HTTP hook support, allowing hooks to POST JSON payloads to a configured URL instead of running a local command"
The patch file is available in the agent artifact in the workflow run linked above.
To create a pull request with the changes:
# Download the artifact from the workflow run
gh run download 24742640883 -n agent -D /tmp/agent-24742640883
# Create a new branch
git checkout -b update/http-hooks-learning-hub-67d6c1651b1af661
# Apply the patch (--3way handles cross-repo patches where files may already exist)
git am --3way /tmp/agent-24742640883/aw-update-http-hooks-learning-hub.patch
# Push the branch to origin
git push origin update/http-hooks-learning-hub-67d6c1651b1af661
# Create the pull request
gh pr create --title '[bot] Add HTTP hooks documentation to Learning Hub' --base staged --head update/http-hooks-learning-hub-67d6c1651b1af661 --repo github/awesome-copilot
Show patch preview (144 of 144 lines)
From 842b9b5ea48b6246f4e302a351d18cb468466893 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Tue, 21 Apr 2026 19:45:22 +0000
Subject: [PATCH] docs: add HTTP hooks documentation to Learning Hub
Document the new HTTP hook type (introduced in Copilot CLI v1.0.35) that
allows hooks to POST JSON payloads to a configured URL instead of running
a local shell command.
Changes:
- Updated 'Event Configuration' section to explain both hook types- Split into subsections: 'Command Hooks' and 'HTTP Hooks'- Added HTTP hook configuration reference with url and timeoutSec fields- Added a practical Slack webhook example using the HTTP hook type- Updated the 'Notification on Session End' example to show both approaches- Updated 'What Are Hooks' intro to mention HTTP endpoints alongside shell commands- Updated lastUpdated date to 2026-04-21
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
.../learning-hub/automating-with-hooks.md | 71 +++++++++++++++++--
1 file changed, 66 insertions(+), 5 deletions(-)
diff --git a/website/src/content/docs/learning-hub/automating-with-hooks.md b/website/src/content/docs/learning-hub/automating-with-hooks.md
index ac2f930..9cc48f2 100644
--- a/website/src/content/docs/learning-hub/automating-with-hooks.md+++ b/website/src/content/docs/learning-hub/automating-with-hooks.md@@ -3,7 +3,7 @@ title: 'Automating with Hooks'
description: 'Learn how to use hooks to automate lifecycle events like formatting, linting, and governance checks during Copilot agent sessions.'
authors:
- GitHub Copilot Learning Hub Team
-lastUpdated: 2026-04-16+lastUpdated: 2026-04-21
estimatedReadingTime: '8 minutes'
tags:
- hooks
@@ -25,7 +25,7 @@ This article explains how hooks work, how to configure them, and practical patte
Hooks are shell commands or scripts that run automatically in response to lifecycle events during a Copilot agent session. They execute outside the A
... (truncated)
What's new
HTTP hook support was added to GitHub Copilot CLI in v1.0.35 (released 2026-04-21). Hooks can now use
"type": "http"to POST JSON payloads directly to a URL instead of running a local shell command — useful for integrating with external webhooks, notification services, and custom backends without needingcurlor a script.What was updated
website/src/content/docs/learning-hub/automating-with-hooks.md"command"and"http")urlandtimeoutSecfields"type": "http"lastUpdatedto 2026-04-21Source announcements
Note
This was originally intended as a pull request, but the git push operation failed.
Workflow Run: View run details and download patch artifact
The patch file is available in the
agentartifact in the workflow run linked above.To create a pull request with the changes:
Show patch preview (144 of 144 lines)