From bd0177b039175e9399401cbe4ce960fef79945c0 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Wed, 21 Jan 2026 23:12:55 +0100 Subject: [PATCH] Fix fmt.Errorf format argument in ParseFullReference The error path passed an int to fmt.Errorf with %q, which expects a string. Use the original reference string to avoid a format mismatch. Signed-off-by: Mikel Olasagasti Uranga --- pkg/cmd/pr/shared/finder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/pr/shared/finder.go b/pkg/cmd/pr/shared/finder.go index 1879fff62..697133680 100644 --- a/pkg/cmd/pr/shared/finder.go +++ b/pkg/cmd/pr/shared/finder.go @@ -349,7 +349,7 @@ func ParseFullReference(s string) (ghrepo.Interface, int, error) { number, err := strconv.Atoi(m[3]) if err != nil { - return nil, 0, fmt.Errorf("invalid reference: %q", number) + return nil, 0, fmt.Errorf("invalid reference: %q", s) } owner := m[1]