api
api copied to clipboard
Feature: surface repo ROSS index out to individual repos
Type of feature
🍕 Feature
Current behavior
We currently aren't surfacing the ROSS index within individual repos, like when doing v2/repos/search
:
curl -X 'GET' \
'https://api.opensauced.pizza/v2/repos/search?page=1&limit=10&range=30&prev_days_start_date=0&repo=kubernetes%2Fkubernetes' \
-H 'accept: application/json'
{
"data": [
{
"id": 20580498,
// .. redacted
"full_name": "kubernetes/kubernetes",
// ... redacted
"pr_active_count": 159,
"open_prs_count": 140,
"merged_prs_count": 339,
"spam_prs_count": 0,
"draft_prs_count": 19,
"closed_prs_count": 125,
"pr_velocity_count": 25,
"activity_ratio": 10,
"health": 10
}
],
"meta": {
"page": 1,
"limit": 10,
"itemCount": 1,
"pageCount": 1,
"hasPreviousPage": false,
"hasNextPage": false
}
}
only the activity ratio and pr stats.
Suggested solution
We should surface the ROSS index for individual repos - followup to https://github.com/open-sauced/api/pull/587
Additional context
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributing Docs
- [X] I agree to follow this project's Contribution Docs