Skip to content

Commit 8095bdc

Browse files
Add activity validation and update README labels
- Skip repos inactive for more than 90 days in populate script - Update README to mention all beginner-friendly labels searched Signed-off-by: Jai Pradeesh <[email protected]>
1 parent d85c8c4 commit 8095bdc

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To maintain the quality of projects in Good First Issue, please make sure your G
2121

2222
| Requirement | Description |
2323
|-------------|-------------|
24-
| Good First Issues | At least 3 open issues with the `good first issue` label |
24+
| Good First Issues | At least 3 open issues with beginner-friendly labels (`good first issue`, `beginner`, `easy`, `help wanted`, etc.) |
2525
| Contributors | At least 10 contributors |
2626
| README.md | Detailed setup instructions |
2727
| CONTRIBUTING.md | Guidelines for new contributors |

data/repositories.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ repositories = [
5454
'github.com/Automattic/wp-calypso',
5555
'github.com/automl/auto-sklearn',
5656
'github.com/Avaiga/taipy',
57+
'github.com/amelioro/ameliorate',
5758
'github.com/aws-amplify/amplify-cli',
5859
'github.com/aws-amplify/amplify-js',
5960
'github.com/aws/amazon-vpc-cni-k8s',
@@ -421,6 +422,7 @@ repositories = [
421422
'github.com/mesonbuild/meson',
422423
'github.com/MessageKit/MessageKit',
423424
'github.com/MetaMask/metamask-extension',
425+
'github.com/Michele0303/tiktok-live-recorder',
424426
'github.com/microsoft/ChakraCore',
425427
'github.com/microsoft/graspologic',
426428
'github.com/microsoft/GSL',
@@ -532,6 +534,7 @@ repositories = [
532534
'github.com/phpmd/phpmd',
533535
'github.com/phpmyadmin/phpmyadmin',
534536
'github.com/phpservermon/phpservermon',
537+
'github.com/physicshub/physicshub.github.io',
535538
'github.com/pieces-app/example-ts',
536539
'github.com/playframework/playframework',
537540
'github.com/Plume-org/Plume',
@@ -731,6 +734,7 @@ repositories = [
731734
'github.com/trailofbits/manticore',
732735
'github.com/tridactyl/tridactyl',
733736
'github.com/tweag/asterius',
737+
'github.com/typetools/checker-framework',
734738
'github.com/typescript-eslint/typescript-eslint',
735739
'github.com/tzapu/WiFiManager',
736740
'github.com/ubuntu/microk8s',

gfi/populate.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import time
88
from collections import Counter
99
from concurrent.futures import ThreadPoolExecutor
10+
from datetime import datetime, timezone
1011
from operator import itemgetter
1112
from os import getenv, path
1213
from typing import TypedDict, Dict, Union, Sequence, Optional
@@ -30,6 +31,7 @@
3031
ISSUE_SORT_DIRECTION = "desc"
3132
ISSUE_LIMIT = 10
3233
SLUGIFY_REPLACEMENTS = [["#", "sharp"], ["+", "plus"]]
34+
MAX_INACTIVITY_DAYS = 90 # Skip repos inactive for more than 3 months
3335

3436
if not path.exists(LABELS_DATA_FILE):
3537
raise RuntimeError("No labels data file found. Exiting.")
@@ -146,6 +148,12 @@ def get_repository_info(
146148
if repository.archived:
147149
return None
148150

151+
# Skip repos with no recent activity
152+
days_since_push = (datetime.now(timezone.utc) - repository.pushed_at).days
153+
if days_since_push > MAX_INACTIVITY_DAYS:
154+
logger.info("\t skipping due to inactivity ({} days since last push)", days_since_push)
155+
return None
156+
149157
good_first_issues = set()
150158
for label in ISSUE_LABELS:
151159
rate_limiter.acquire()

0 commit comments

Comments
 (0)