-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add API for data insights on PRs, issues, and code changes. #700
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis PR introduces a new API for data insights on pull requests, issues, and code changes. It adds new endpoints to the FastAPI router for fetching insights from GitHub repositories, utilizing external data sources to aggregate metrics by year, quarter, and month. Changes
|
return json.dumps({"success": False, "message": str(e)}) | ||
|
||
|
||
@router.get("code_change") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The endpoint path for get_code_change_insight
is missing a leading slash. It should be @router.get("/code_change")
to ensure the route is correctly registered.
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
api ref: https://open-digger.cn/en/docs/user_docs/metrics/metrics_usage_guide