mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 10:25:13 +00:00
- Introduced hooks to enable automated workflows triggered by specific events during GitHub Copilot sessions. - Added documentation for hooks in AGENTS.md and README.md. - Created a new directory structure for hooks, including README.md and hooks.json files. - Implemented two example hooks: Session Auto-Commit and Session Logger. - Developed scripts for logging session events and auto-committing changes. - Enhanced validation and parsing for hook metadata. - Updated build and validation scripts to accommodate new hooks functionality.
33 lines
645 B
JSON
33 lines
645 B
JSON
{
|
|
"version": 1,
|
|
"hooks": {
|
|
"sessionStart": [
|
|
{
|
|
"type": "command",
|
|
"bash": ".github/hooks/session-logger/log-session-start.sh",
|
|
"cwd": ".",
|
|
"timeoutSec": 5
|
|
}
|
|
],
|
|
"sessionEnd": [
|
|
{
|
|
"type": "command",
|
|
"bash": ".github/hooks/session-logger/log-session-end.sh",
|
|
"cwd": ".",
|
|
"timeoutSec": 5
|
|
}
|
|
],
|
|
"userPromptSubmitted": [
|
|
{
|
|
"type": "command",
|
|
"bash": ".github/hooks/session-logger/log-prompt.sh",
|
|
"cwd": ".",
|
|
"env": {
|
|
"LOG_LEVEL": "INFO"
|
|
},
|
|
"timeoutSec": 5
|
|
}
|
|
]
|
|
}
|
|
}
|