Skip to content

--template does not work with --web when creating pull request #9325

@AnthonyLatsis

Description

@AnthonyLatsis

Describe the bug

The template query parameter is not added to the URL regardless of whether the template exists or not.

gh version 2.52.0 (2024-06-24)
https://github.com/cli/cli/releases/tag/v2.52.0

Steps to reproduce the behavior

gh pr create --base <base_branch> --head <fork_branch> --template <template> --repo <repo> --web

Expected vs actual behavior

I expect the template query parameter to be added to the URL. Even if the template does not exist in the repository because you may want to select an org-wide central pull request template. For example, swiftlang has such a template for pull requests to compiler-aligned release branches.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggh-issuerelating to the gh issue commandgh-prrelating to the gh pr commandp3Affects a small number of users or is largely cosmetic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions