github / stale-repos

Find stale repositories in a GitHub organization.
https://github.blog/2023-06-05-announcing-the-stale-repos-action/
MIT License
123 stars 26 forks source link

Support determining activity date from default branch #79

Closed anovadox closed 5 months ago

anovadox commented 5 months ago

Pull Request

New Staleness criteria: latest default_branch commit

Proposed Changes

Support determining activity date from default branch rather than most recent push to any branch

ACTIVITY_METHOD defaults to the current behavior: repo.pushed_at aka "pushed"

However, I think the most recent commit to the default branch (default_branch_updated) is another valid way of determining staleness/activity.

Our organization uses dependabot, which continues to open PRs and push commits to repositories which have not had any human contribution in more than a year.

With this change, we will easily be able to surface repositories that otherwise would be missed due to bot activity keeping them "fresh".

Readiness Checklist

Author/Contributor

Reviewer

zkoppert commented 5 months ago

Thanks for adding this enhancement @anovadox! Appreciate you adding this!