Skip to content

Allow setting squash merge commit message and title in gh repo edit #10092

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Describe the feature or problem you’d like to solve

gh repo edit allows setting most properties of octokit.rest.repos.update. But, it doesn't seem to have an option for squash_merge_commit_* properties that I can find.

From the docs and the OpenAPI types, that's:

  • squash_merge_commit_message
  • squash_merge_commit_title

Proposed solution

Could we be able to set those properties in gh repo edit too, please? I.e.:

gh repo edit --squash-merge-commit-message "PR_BODY" --squash-merge-commit-title "PR_TITLE"

Additional context

Is there precedent for what does or doesn't get implemented in gh repo edit?

Sibling issue to: #10091

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-reporelating to the gh repo commandhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions