Skip to content

jing11223344/claude-weekly-summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

n8n Weekly GitHub Activity Summary 🚀

Automated n8n workflow that generates a narrative weekly summary of your GitHub repository activity using Claude AI.

bounty opire


🧩 Workflow Overview

This workflow runs every Monday at 9 AM UTC and:

  1. 🔍 Fetches merged PRs, closed issues, commits, and releases from your repo
  2. 🤖 Sends the data to Claude Sonnet 4 for a narrative summary
  3. 📄 Formats a beautiful Markdown summary
  4. 📬 Delivers to Slack + optionally a custom webhook + saves locally

⚡ Quick Start (Import)

# 1. Download the workflow JSON
curl -sfL https://raw.githubusercontent.com/claude-builders-bounty/claude-weekly-summary/main/weekly-summary-workflow.json \
  -o weekly-summary-workflow.json

Then in n8n:

  1. Open n8n → WorkflowsImport from File
  2. Upload weekly-summary-workflow.json
  3. Configure credentials (see below)
  4. Activate the workflow ✅

🔐 Required Credentials

Set these as environment variables in your n8n Docker/Hosting:

# Required
ANTHROPIC_API_KEY=sk-ant-...          # Claude API key
GITHUB_PAT=ghp_...                    # GitHub Personal Access Token
SLACK_BOT_TOKEN=xoxb-...              # Slack bot token
SLACK_CHANNEL=#engineering            # Target Slack channel

# Optional overrides
GITHUB_REPO=owner/repo               # Default repo (can override per run)
CLAUDE_MODEL=claude-sonnet-4-20250514
CLAUDE_API_URL=https://api.anthropic.com/v1/messages
WEBHOOK_URL=https://...               # Custom webhook for downstream pipelines

Creating Credentials in n8n

Credential Type Field Value
Header Auth (for GitHub) Header Name: Authorization Value: Bearer {{ $env.GITHUB_PAT }}
Header Auth (for Claude) Header Name: x-api-key Value: {{ $env.ANTHROPIC_API_KEY }}
Slack OAuth2 Access Token {{ $env.SLACK_BOT_TOKEN }}

🧪 Manual Test

After importing, click Execute Workflow in n8n. Set the repo parameter:

owner/repo

The workflow will run immediately and generate a summary.


📊 Sample Output

# Weekly Dev Summary: vercel/next.js

**Week ending:** 2026-05-16  |  **Generated:** 5/16/2026, 9:00 AM

---

## This Week in next.js

### 🔥 Big News
This was a major week for the Next.js team with **12 merged PRs** and a
**v15.5.2 patch release** focused on stability and edge case handling.

### ✨ New Features & Improvements
- Turbopack incremental compilation defaults to expanded scope
- Middleware matcher now supports pattern negation

### 🐛 Bug Fixes
- Fixed edge runtime memory leak in server actions
- Corrected CSS injection order in static generation

### 🔧 Behind the Scenes
- Updated React peer dependency to 19.1
- CI pipeline migrated to GitHub Actions large runners

---

*Generated by n8n workflow using Claude AI*

🏗 Workflow Architecture

⏰ Schedule (Mon 9AM)
        │
        ▼
🐙 Fetch GitHub Data
   ├── 📥 Merged PRs (20 most recent)
   ├── 🐛 Closed Issues (20 most recent)
   ├── 📝 Recent Commits (20 most recent)
   └── 🏷 Latest Releases (5 most recent)
        │
        ▼
🔗 Merge & Filter (last 7 days)
        │
        ▼
🤖 Claude API → Narrative Summary
        │
        ▼
📄 Format Markdown
        │
        ▼
   ┌────┼────┐
   ▼    ▼    ▼
📬     💾   🔌
Slack  File Webhook

🔧 Customization

  • Change schedule: Edit the Schedule Trigger node
  • Change AI model: Set CLAUDE_MODEL env var or edit the HTTP Request body
  • Add more data sources: Connect additional GitHub endpoints (stars, forks, etc.)
  • Add outputs: Email, Discord, Telegram — wire up any n8n node

🏆 Bounty

Submission for Bounty #4$200.

Acceptance Criteria:

  • Complete n8n workflow
  • Weekly narrative summary of GitHub repo activity
  • Uses Claude Code API
  • Outputs formatted summary
  • Full README with setup instructions

About

Weekly GitHub Activity Summary — n8n workflow with Claude AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages