π€ Higress Report Generation Agent: An Intelligent Assistant for Automating Open Source Monthly Reports and Changelogs
In the daily maintenance of open source projects, regularly generating monthly reports and changelogs is essential. Traditionally, developers need to manually filter PRs, analyze code changes, and write feature descriptions. This process is time-consuming, labor-intensive, and prone to missing important information.
Higress Report Generation Agent was created to address this. It is an AI-powered intelligent report generation system that automatically analyzes PR data from GitHub repositories and generates high-quality monthly reports and changelogs.
6.27.-.Compressed.with.FlexClip.mp4
οΌThe qwen-turbo model has been testedοΌ
- Multi-dimensional Evaluation: Scoring system based on code complexity, actual code changes, and user impact
- Community Comment Integration: Integrates comments from bots like Lingma-Agent, providing a more comprehensive PR analysis perspective
- Key PR Identification: Automatically identifies critical feature updates and provides detailed technical analysis
- Support the generation of monthly reports in the form of dialogues
- Monthly Report Mode: Automatically filters high-quality PRs by time to generate community monthly reports
- Changelog Mode: Generates version changelogs grouped by feature type based on a specified PR list
- Environment Variable Configuration: Supports any GitHub repository without code modification
- Flexible Switching: Easily adapt to different project needs through simple configuration
graph TB
A[User Interaction] --> B[Report Generation Agent]
B --> C[Monthly Report Generator]
B --> D[Changelog Generator]
C --> E[GitHub API]
D --> E
E --> F[PR Data Fetcher]
F --> G[Comment Data Fetcher]
G --> H[File Change Analyzer]
H --> I[AI Analysis Engine]
I --> J[Qwen Model]
I --> K[Intelligent Scoring]
I --> L[Function Classification]
I --> M[Technical Insights]
K --> N[Report Composer]
L --> N
M --> N
N --> O[Chinese Report]
N --> P[English Translation]
sequenceDiagram
participant U as User
participant M as Main Program
participant G as GitHub Helper
participant L as Lingma Agent
participant A as AI Analysis Engine
participant R as Report Generator
U->>M: Select report type
M->>G: Fetch PR list
G->>M: Return PR data
loop For each PR
M->>G: Fetch PR details
G->>M: Return basic info
M->>G: Fetch code changes
G->>M: Return file changes
M->>G: Fetch comment data
Note over G,L: Includes comments from Lingma-Agent
G->>M: Return comment list
M->>A: Send analysis request
A->>M: Return analysis result
end
M->>R: Generate report
R->>M: Return report content
M->>U: Display final report
A highlight of the project is its ability to read and analyze all comments in PRs, including those from AI bots like Lingma-Agent. This integration brings the following advantages:
- Code Quality Assessment: Lingma-Agent's code review opinions are included in the analysis
- Technical Risk Identification: Potential issues flagged by bots are considered in scoring
- Community Interaction Insights: Comparative analysis of human and machine comments
- Enhanced Intelligence: AI-to-AI collaboration for more accurate technical judgments
- Clone and Build the GitHub MCP Server
git clone https://github.com/github/github-mcp-server.git
cd github-mcp-server
# build github-mcp-server
go build -o ../github-mcp-serve ./cmd/github-mcp-server
chmod u+x ../github-mcp-serve
- Install Dependencies
uv sync
- Configure Environment Variables
# Required configuration
export GITHUB_PERSONAL_ACCESS_TOKEN=your_github_token
export DASHSCOPE_API_KEY=your_dashscope_api_key
# LLM configuration
export MODEL_NAME=qwen-max
export MODEL_SERVER=https://dashscope.aliyuncs.com/compatible-mode/v1
# Optional configuration
export GITHUB_REPO_OWNER=alibaba # Default: alibaba
export GITHUB_REPO_NAME=higress # Default: higress
export GOOD_PR_NUM=10 # Number of highlight PRs in monthly report
export AGENT=true # agent mode
# Run the report generator
python report_main.py
# or you can run with cmd args
python report_main.py --mode=2 --choice=1 --month=7 --year=2025
π€ Github Report Generation Agent
Current repository: alibaba/higress
==================================================
Please select the type of report to generate:
1. π Monthly Report
2. π Changelog
Enter your choice (1-2): 1
Enter month (1-12, default is current month): 12
Enter year (default is current year): 2024
Enter list of important PR numbers (comma-separated integers, e.g. `1234,5678`, leave blank for auto-detection): 1234,1235
Generate English translation? (y/n, default y): y
π Generating monthly report...
β
PR list fetched
π€ AI analysis in progress...
π Report generated
π English translation completed
Report saved to: report.md
English version saved to: report.EN.md