From 0722cd3a3283809979c48f7e52a6d40b5064b748 Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Wed, 18 Sep 2024 08:40:07 -0400 Subject: [PATCH 1/2] Replace backticks in help doc The backticks were being run, resulting in a blank space in output of `adr help new` rather than the formatting that was likely being attempted. (cherry picked from commit d1ef399e987fc682d305ed0e146891777b367784) --- src/_adr_help_new | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_adr_help_new b/src/_adr_help_new index ae41118..286bfb1 100755 --- a/src/_adr_help_new +++ b/src/_adr_help_new @@ -12,7 +12,7 @@ preferred; EDITOR is used if VISUAL is not set). After editing, the file name of the ADR is output to stdout, so the command can be used in scripts. -If the ADR directory contains a file `templates/template.md`, this is used as +If the ADR directory contains a file "templates/template.md", this is used as the template for the new ADR. Otherwise the following file is used: ${adr_template_dir}/template.md From 48c0df16dd9a71ed461a12c8a4c8a8ce96814692 Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Wed, 17 Jun 2026 17:39:00 -0700 Subject: [PATCH 2/2] Test help new template path output Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- tests/help-new-template-path.expected | 2 ++ tests/help-new-template-path.sh | 1 + 2 files changed, 3 insertions(+) create mode 100644 tests/help-new-template-path.expected create mode 100644 tests/help-new-template-path.sh diff --git a/tests/help-new-template-path.expected b/tests/help-new-template-path.expected new file mode 100644 index 0000000..333075f --- /dev/null +++ b/tests/help-new-template-path.expected @@ -0,0 +1,2 @@ +ADR_PAGER=cat adr help new | grep 'file "templates/template.md"' +If the ADR directory contains a file "templates/template.md", this is used as diff --git a/tests/help-new-template-path.sh b/tests/help-new-template-path.sh new file mode 100644 index 0000000..de9f50e --- /dev/null +++ b/tests/help-new-template-path.sh @@ -0,0 +1 @@ +ADR_PAGER=cat adr help new | grep 'file "templates/template.md"'