remove mention
Browse files
README.md
CHANGED
|
@@ -32,7 +32,7 @@ If an agent can consistently resolve issues across different projects, that tell
|
|
| 32 |
The leaderboard pulls data directly from GitHub's issue history and shows you key metrics for the current year:
|
| 33 |
|
| 34 |
**Leaderboard Table**
|
| 35 |
-
- **Total Issues**: How many issues the agent has been involved with (authored
|
| 36 |
- **Resolved Issues**: How many issues were marked as completed
|
| 37 |
- **Resolution Rate**: Percentage of issues that were successfully resolved (see calculation details below)
|
| 38 |
|
|
@@ -53,7 +53,6 @@ Behind the scenes, we're doing a few things:
|
|
| 53 |
We search GitHub using multiple query patterns to catch all issues associated with an agent:
|
| 54 |
- Issues authored by the agent (`author:agent-name`)
|
| 55 |
- Issues assigned to the agent (`assignee:agent-name`)
|
| 56 |
-
- Issues mentioning the agent (`mentions:agent-name`)
|
| 57 |
|
| 58 |
**Regular Updates**
|
| 59 |
The leaderboard refreshes automatically every day at 12:00 AM UTC. You can also hit the refresh button if you want fresh data right now.
|
|
|
|
| 32 |
The leaderboard pulls data directly from GitHub's issue history and shows you key metrics for the current year:
|
| 33 |
|
| 34 |
**Leaderboard Table**
|
| 35 |
+
- **Total Issues**: How many issues the agent has been involved with (authored or assigned)
|
| 36 |
- **Resolved Issues**: How many issues were marked as completed
|
| 37 |
- **Resolution Rate**: Percentage of issues that were successfully resolved (see calculation details below)
|
| 38 |
|
|
|
|
| 53 |
We search GitHub using multiple query patterns to catch all issues associated with an agent:
|
| 54 |
- Issues authored by the agent (`author:agent-name`)
|
| 55 |
- Issues assigned to the agent (`assignee:agent-name`)
|
|
|
|
| 56 |
|
| 57 |
**Regular Updates**
|
| 58 |
The leaderboard refreshes automatically every day at 12:00 AM UTC. You can also hit the refresh button if you want fresh data right now.
|
app.py
CHANGED
|
@@ -352,7 +352,6 @@ def fetch_all_issues_metadata(identifier, agent_name, token=None, start_from_dat
|
|
| 352 |
It searches using multiple query patterns:
|
| 353 |
- is:issue author:{identifier} (issues authored by the bot)
|
| 354 |
- is:issue assignee:{identifier} (issues assigned to the bot)
|
| 355 |
-
- is:issue mentions:{identifier} (issues mentioning the bot)
|
| 356 |
|
| 357 |
Args:
|
| 358 |
identifier: GitHub username or bot identifier
|
|
@@ -376,17 +375,13 @@ def fetch_all_issues_metadata(identifier, agent_name, token=None, start_from_dat
|
|
| 376 |
# Define query patterns for issues:
|
| 377 |
# 1) author pattern: issues authored by the identifier
|
| 378 |
# 2) assignee pattern: issues assigned to the identifier
|
| 379 |
-
# 3) mentions pattern: issues mentioning the identifier
|
| 380 |
stripped_id = identifier.replace('[bot]', '')
|
| 381 |
query_patterns = []
|
| 382 |
|
| 383 |
-
# Always add author pattern
|
| 384 |
query_patterns.append(f'is:issue author:{identifier}')
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
if stripped_id:
|
| 388 |
-
query_patterns.append(f'is:issue assignee:{stripped_id}')
|
| 389 |
-
query_patterns.append(f'is:issue mentions:{stripped_id}')
|
| 390 |
|
| 391 |
# Use a dict to deduplicate issues by ID
|
| 392 |
issues_by_id = {}
|
|
|
|
| 352 |
It searches using multiple query patterns:
|
| 353 |
- is:issue author:{identifier} (issues authored by the bot)
|
| 354 |
- is:issue assignee:{identifier} (issues assigned to the bot)
|
|
|
|
| 355 |
|
| 356 |
Args:
|
| 357 |
identifier: GitHub username or bot identifier
|
|
|
|
| 375 |
# Define query patterns for issues:
|
| 376 |
# 1) author pattern: issues authored by the identifier
|
| 377 |
# 2) assignee pattern: issues assigned to the identifier
|
|
|
|
| 378 |
stripped_id = identifier.replace('[bot]', '')
|
| 379 |
query_patterns = []
|
| 380 |
|
| 381 |
+
# Always add author and assignee pattern
|
| 382 |
query_patterns.append(f'is:issue author:{identifier}')
|
| 383 |
+
query_patterns.append(f'is:issue assignee:{identifier}')
|
| 384 |
+
query_patterns.append(f'is:issue assignee:{stripped_id}')
|
|
|
|
|
|
|
|
|
|
| 385 |
|
| 386 |
# Use a dict to deduplicate issues by ID
|
| 387 |
issues_by_id = {}
|
msr.py
CHANGED
|
@@ -305,15 +305,12 @@ def fetch_all_issues_metadata(identifier, agent_name, token=None, start_from_dat
|
|
| 305 |
# Define query patterns for issues:
|
| 306 |
# 1) author pattern: issues authored by the identifier
|
| 307 |
# 2) assignee pattern: issues assigned to the identifier
|
| 308 |
-
# 3) mentions pattern: issues mentioning the identifier
|
| 309 |
stripped_id = identifier.replace('[bot]', '')
|
| 310 |
query_patterns = []
|
| 311 |
-
# Always add author pattern
|
| 312 |
query_patterns.append(f'is:issue author:{identifier}')
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
query_patterns.append(f'is:issue assignee:{stripped_id}')
|
| 316 |
-
query_patterns.append(f'is:issue mentions:{stripped_id}')
|
| 317 |
issues_by_id = {}
|
| 318 |
current_time = datetime.now(timezone.utc)
|
| 319 |
six_months_ago = current_time - timedelta(days=180)
|
|
|
|
| 305 |
# Define query patterns for issues:
|
| 306 |
# 1) author pattern: issues authored by the identifier
|
| 307 |
# 2) assignee pattern: issues assigned to the identifier
|
|
|
|
| 308 |
stripped_id = identifier.replace('[bot]', '')
|
| 309 |
query_patterns = []
|
| 310 |
+
# Always add author and assignee pattern
|
| 311 |
query_patterns.append(f'is:issue author:{identifier}')
|
| 312 |
+
query_patterns.append(f'is:issue assignee:{identifier}')
|
| 313 |
+
query_patterns.append(f'is:issue assignee:{stripped_id}')
|
|
|
|
|
|
|
| 314 |
issues_by_id = {}
|
| 315 |
current_time = datetime.now(timezone.utc)
|
| 316 |
six_months_ago = current_time - timedelta(days=180)
|