forked from qodo-ai/pr-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Overview
Add Notion integration for documentation sync and project management.
Webhook Support β (New in 2024)
Notion now supports webhooks! Key events:
Events
page.content_updated- Page content changedpage.properties_updated- Page properties changeddatabase.page_added- New page added to databasedatabase.page_updated- Page in database updatedcomment.created/comment.updated- Comments on pages
Identification
- Notion uses signature verification (details TBD)
- Payload contains
type,entity,data
Payload Structure
{
"type": "page.content_updated",
"entity": { "id": "page_id", "type": "page" },
"data": {
"parent": { "type": "database_id", "id": "xxx" }
},
"workspace_id": "xxx"
}Polling Alternative
REST API for database queries:
POST /databases/{id}/query- Query with filters- Filter by
last_edited_timefor incremental sync - Rate limit: 3 requests/second
Tasks
- Implement
NotionPollerinpolling/notion.py - Add Notion webhook handler
- Add Notion config to CLI (
notion_token) - Sync PR descriptions to Notion pages
- Create Notion database for PR tracking
Use Cases
- Doc Sync: Keep Notion docs in sync with PRs
- Project Tracking: Auto-create Notion pages for PRs
- Comment Sync: Mirror PR comments to Notion
- Release Notes: Auto-generate release notes in Notion
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request