Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link

Description

@AnthonyLatsis
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingSomething isn't workinggh-issuerelating to the gh issue commandrelating to the gh issue commandgh-prrelating to the gh pr commandrelating to the gh pr commandpriority-3Affects a small number of users or is largely cosmeticAffects 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.