Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded-B committed Dec 10, 2024
1 parent 662d47c commit be4d974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/githubapi/pr_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func MainGhMetricsLoop(mainGhClientCache *lru.Cache[string, GhClientPair]) {
}
}

func getRepoPrMetrics(ctx context.Context, ghClient GhClientPair, repo *github.Repository) (prWithStakeChecks int, openPRs int, openPromotionPrs int, err error) {
func getRepoPrMetrics(ctx context.Context, ghClient GhClientPair, repo *github.Repository) (prWithStaleChecks int, openPRs int, openPromotionPrs int, err error) {
log.Debugf("Checking repo %s", repo.GetName())
ghOwner := repo.GetOwner().GetLogin()
prListOpts := &github.PullRequestListOptions{
Expand Down Expand Up @@ -57,7 +57,7 @@ func getRepoPrMetrics(ctx context.Context, ghClient GhClientPair, repo *github.R
continue
}
if isPrStalePending(commitStatuses, timeToDefineStale) {
prWithStakeChecks++
prWithStaleChecks++
}
}
openPRs = len(prs)
Expand Down

0 comments on commit be4d974

Please sign in to comment.