From 9d335e091b1ce4898f063aa9b8823065465802c3 Mon Sep 17 00:00:00 2001 From: Giles Gaskell Date: Mon, 19 Aug 2024 11:44:47 +1000 Subject: [PATCH 1/3] Update description for the 'priority' option for the 'buildkite-agent annotate' command. --- clicommand/annotate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clicommand/annotate.go b/clicommand/annotate.go index 8e2b26bec1..647c7f0734 100644 --- a/clicommand/annotate.go +++ b/clicommand/annotate.go @@ -97,7 +97,7 @@ var AnnotateCommand = cli.Command{ }, cli.IntFlag{ Name: "priority", - Usage: "Priority of the annotation (1 to 10). By default annotations have a priority of 3. Annotations with a priority of 10 will be shown first, and annotations with a priority of 1 will be shown last.", + Usage: "The priority of the annotation (′1′ to ′10′). Annotations with a priority of ′10′ are shown first, while annotations with a priority of ′1′ are shown last. When this option is not specified, annotations have a default priority of ′3′.", EnvVar: "BUILDKITE_ANNOTATION_PRIORITY", }, cli.StringFlag{ From 96d5aa79965f5e4c13203b83a43c732e61613448 Mon Sep 17 00:00:00 2001 From: Giles Gaskell Date: Mon, 19 Aug 2024 12:01:42 +1000 Subject: [PATCH 2/3] Add default value of 3 to 'priority'. --- clicommand/annotate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/clicommand/annotate.go b/clicommand/annotate.go index 647c7f0734..b019a7574c 100644 --- a/clicommand/annotate.go +++ b/clicommand/annotate.go @@ -99,6 +99,7 @@ var AnnotateCommand = cli.Command{ Name: "priority", Usage: "The priority of the annotation (′1′ to ′10′). Annotations with a priority of ′10′ are shown first, while annotations with a priority of ′1′ are shown last. When this option is not specified, annotations have a default priority of ′3′.", EnvVar: "BUILDKITE_ANNOTATION_PRIORITY", + Value: 3, }, cli.StringFlag{ Name: "job", From ea739e5cf29065c8aef9b0e4dc6d5f904f2af6df Mon Sep 17 00:00:00 2001 From: Giles Gaskell Date: Mon, 19 Aug 2024 12:10:25 +1000 Subject: [PATCH 3/3] Remove redundant sentence. --- clicommand/annotate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clicommand/annotate.go b/clicommand/annotate.go index b019a7574c..360973be6d 100644 --- a/clicommand/annotate.go +++ b/clicommand/annotate.go @@ -97,7 +97,7 @@ var AnnotateCommand = cli.Command{ }, cli.IntFlag{ Name: "priority", - Usage: "The priority of the annotation (′1′ to ′10′). Annotations with a priority of ′10′ are shown first, while annotations with a priority of ′1′ are shown last. When this option is not specified, annotations have a default priority of ′3′.", + Usage: "The priority of the annotation (′1′ to ′10′). Annotations with a priority of ′10′ are shown first, while annotations with a priority of ′1′ are shown last.", EnvVar: "BUILDKITE_ANNOTATION_PRIORITY", Value: 3, },