From 81b6357a96e684d7588e499c8a7f3ab892c8c02a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 8 Jul 2025 22:52:51 +0300 Subject: feat: add obsolete project notice for inactive projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add warning notice for projects with avg commit age > 2 years AND last commit > 1 year - Display "⚠️ Notice: This project appears to be finished, obsolete, or no longer maintained" - Also update abandoned branch threshold from 1 to 3 years in branch analyzer - Helps users identify potentially outdated or unmaintained projects 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/sync/branch_analyzer.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/sync') diff --git a/internal/sync/branch_analyzer.go b/internal/sync/branch_analyzer.go index c3b2204..f684f60 100644 --- a/internal/sync/branch_analyzer.go +++ b/internal/sync/branch_analyzer.go @@ -46,12 +46,13 @@ func (s *Syncer) analyzeAbandonedBranches() (*AbandonedBranchReport, error) { if mainBranch != "" { mainInfo, err := s.getBranchInfo(mainBranch) if err == nil { - report.MainBranchUpdated = mainInfo.LastCommit.After(time.Now().AddDate(-1, 0, 0)) + // Consider project active if main branch has commits within last 3 years + report.MainBranchUpdated = mainInfo.LastCommit.After(time.Now().AddDate(-3, 0, 0)) report.MainBranchLastCommit = mainInfo.LastCommit } } - // Only analyze if main branch is active + // Only analyze if main branch is active (has commits within last 3 years) if !report.MainBranchUpdated { return report, nil } -- cgit v1.2.3