Skip to content

Commit 9dcbb1d

Browse files
fix(github): PR templates in a lowercase pull_request_template/ directory are found
The template detector listed only the uppercase PULL_REQUEST_TEMPLATE directories, and its ls-tree pathspec and prefix check are case-sensitive, so a lowercase pull_request_template/ directory was never read. List the lowercase spelling next to each uppercase one, as TEMPLATE_PATHS already does. Fixes #35204 AI-assisted; verified with the tests and tools listed above.
1 parent 71a6c01 commit 9dcbb1d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/source-control-github/src/server/gitHubChangeRequestTemplate.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ const TEMPLATE_PATHS = [
2525

2626
const TEMPLATE_DIRECTORIES = [
2727
".github/PULL_REQUEST_TEMPLATE",
28+
".github/pull_request_template",
2829
"PULL_REQUEST_TEMPLATE",
30+
"pull_request_template",
2931
"docs/PULL_REQUEST_TEMPLATE",
32+
"docs/pull_request_template",
3033
] as const;
3134

3235
type ExecuteGit = SourceControlHost.SourceControlHost["Service"]["git"]["execute"];

0 commit comments

Comments
 (0)