Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ the following fields:
| `raw_score` | `float` | Raw graph score before normalization |
| `normalized_score` | `float` | Normalized score (0.0 - 1.0) |
| `trust_level` | `TrustLevel` | HIGH, MEDIUM, LOW, UNKNOWN, BOT, or EXISTING_CONTRIBUTOR |
| `percentile` | `float` | Percentile rank (0.0 - 1.0) |
| `account_age_days` | `int` | Age of the GitHub account in days |
| `total_merged_prs` | `int` | Total number of merged pull requests |
| `unique_repos_contributed` | `int` | Number of distinct repositories |
Expand Down
2 changes: 1 addition & 1 deletion docs/mcp-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Returns the full trust score as JSON, including all fields from the
| `force_score` | `boolean` | No | Force full scoring even for known contributors (default: `false`) |

**Returns:** Full `TrustScore` JSON with all fields (user_login,
context_repo, raw_score, normalized_score, trust_level, percentile,
context_repo, raw_score, normalized_score, trust_level,
account_age_days, total_merged_prs, unique_repos_contributed,
top_contributions, language_match, flags, scoring_model, component_scores,
scoring_metadata). When `scoring_model` is `v2`, the response includes
Expand Down
2 changes: 1 addition & 1 deletion src/good_egg/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TrustScore(BaseModel):
raw_score: float = 0.0
normalized_score: float = 0.0
trust_level: TrustLevel = TrustLevel.UNKNOWN
percentile: float = 0.0

account_age_days: int = 0
total_merged_prs: int = 0
unique_repos_contributed: int = 0
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def sample_trust_score() -> TrustScore:
raw_score=0.0045,
normalized_score=0.72,
trust_level=TrustLevel.HIGH,
percentile=85.0,

account_age_days=1800,
total_merged_prs=3,
unique_repos_contributed=3,
Expand Down Expand Up @@ -186,7 +186,7 @@ def sample_v2_trust_score() -> TrustScore:
raw_score=0.0045,
normalized_score=0.72,
trust_level=TrustLevel.HIGH,
percentile=85.0,

account_age_days=1800,
total_merged_prs=3,
unique_repos_contributed=3,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _make_score(**kwargs) -> TrustScore:
"raw_score": 0.65,
"normalized_score": 0.72,
"trust_level": TrustLevel.HIGH,
"percentile": 85.0,

"account_age_days": 365,
"total_merged_prs": 42,
"unique_repos_contributed": 10,
Expand Down Expand Up @@ -199,7 +199,7 @@ def _make_v2_score(self, **kwargs) -> TrustScore:
"raw_score": 0.65,
"normalized_score": 0.72,
"trust_level": TrustLevel.HIGH,
"percentile": 85.0,

"account_age_days": 1825,
"total_merged_prs": 42,
"unique_repos_contributed": 10,
Expand Down