Skip to content

Commit

Permalink
Change the cutoffDate time for checkStalePRs.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaslana committed May 8, 2024
1 parent 6310d0a commit 697cf28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/github/checkStalePRs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// CheckStalePRs will return a list of PR URLs that have not been updated in the last 7 days by internal team members.
func CheckStalePRs(githubClient *github.Client, internalTeam string, cfg config.CheckStalePending) ([]string, error) {
var stalePRUrls []string
cutoffDate := time.Now().AddDate(0, 0, -7) // 7 days ago
cutoffDate := time.Now().Add(7 * 24 * time.Hour) // 7 days ago
teamMembers, err := GetTeamMemberList(githubClient, internalTeam)
if err != nil {
return nil, err
Expand Down

0 comments on commit 697cf28

Please sign in to comment.