diff --git a/README.md b/README.md index 376fc69..e33add1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This project identifies and reports repositories with no activity for configurable amount of time, in order to surface inactive repos to be considered for archival. The current approach assumes that the repos that you want to evaluate are available in a single GitHub organization. -For the purpose of this action, a repository is considered inactive if it has not had a `push` in a configurable amount of days (can also be configured to determine activity based on default branch). +For the purpose of this action, a repository is considered inactive if it has not had a `push` in a configurable amount of days (can also be configured to determine activity based on default branch. See `ACTIVITY_METHOD` for more details.). This action was developed by GitHub so that we can keep our open source projects well maintained, and it was made open source in the hopes that it would help you too! We are actively using and are archiving things in batches since there are many repositories on our report. diff --git a/stale_repos.py b/stale_repos.py index 8a856f4..2414315 100755 --- a/stale_repos.py +++ b/stale_repos.py @@ -151,7 +151,7 @@ def get_active_date(repo): Returns: A date object representing the last activity date of the repository. """ - activity_method = os.getenv("ACTIVITY_METHOD", "pushed") + activity_method = os.getenv("ACTIVITY_METHOD", "pushed").lower() if activity_method == "default_branch_updated": commit = repo.branch(repo.default_branch).commit active_date = parse(commit.commit.as_dict()['committer']['date'])