Skip to content

Commit 8db7f15

Browse files
committed
Newly blocked outgoing PRs should get party popper icon
1 parent 7209918 commit 8db7f15

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cmd/goose/ui.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,16 @@ func (app *App) addPRSection(ctx context.Context, prs []PR, sectionTitle string,
201201
}
202202

203203
title := fmt.Sprintf("%s #%d", sortedPRs[i].Repository, sortedPRs[i].Number)
204-
// Add bullet point or goose for blocked PRs
204+
// Add bullet point or emoji for blocked PRs
205205
if sortedPRs[i].NeedsReview || sortedPRs[i].IsBlocked {
206-
// Show goose emoji for PRs blocked within the last hour
206+
// Show emoji for PRs blocked within the last hour
207207
if !sortedPRs[i].FirstBlockedAt.IsZero() && time.Since(sortedPRs[i].FirstBlockedAt) < time.Hour {
208-
title = fmt.Sprintf("🪿 %s", title)
208+
// Use party popper for outgoing PRs, goose for incoming PRs
209+
if sectionTitle == "Outgoing" {
210+
title = fmt.Sprintf("🎉 %s", title)
211+
} else {
212+
title = fmt.Sprintf("🪿 %s", title)
213+
}
209214
} else {
210215
title = fmt.Sprintf("• %s", title)
211216
}

0 commit comments

Comments
 (0)