You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow setting commit title defaults in gh repo edit #8320
Augment gh repo edit --enable-squash-merge option to allow for values other than =false, e.g. --enable-squash-merge=pr-title-and-body. Same for --enable-merge-commit.
or
Create 4 new separate options to mirror the Repository REST API.
@TWiStErRob Thanks for the feature request, I think it would make a nice improvement to allow for setting the default title and body for squash and merge commits. I do not think that changing the --enable-squash-merge and --enable-merge-commit flags is the right approach though. I think that would overload those flags making them confusing along with being a backwards incompatible change.
I would rather have flags that match the API --squash-merge-commit-title, --squash-merge-commit-message, --merge-commit-title, and --merge-commit-message. What do you think?
I was thinking of augmenting because there's a dependency between the merge type (e.g. squash) being on and the title/body setting. Although nothing preventing us from setting the body/title and then turning the merge type off, so maybe the dependency is only on the UI.
Your argument makes sense though, that's what I meant by "4 separate options". Happy to get the ability in any way. :)
A PR to resolve this was merged, but quickly reverted because #10363 (comment)
Closing as duplicate of #10092 because that is where the current core team has discussed and produced more thorough Acceptance Criteria for this feature.
Activity
samcoe commentedon Nov 13, 2023
@TWiStErRob Thanks for the feature request, I think it would make a nice improvement to allow for setting the default title and body for squash and merge commits. I do not think that changing the
--enable-squash-mergeand--enable-merge-commitflags is the right approach though. I think that would overload those flags making them confusing along with being a backwards incompatible change.I would rather have flags that match the API
--squash-merge-commit-title,--squash-merge-commit-message,--merge-commit-title, and--merge-commit-message. What do you think?TWiStErRob commentedon Nov 13, 2023
I was thinking of augmenting because there's a dependency between the merge type (e.g. squash) being on and the title/body setting. Although nothing preventing us from setting the body/title and then turning the merge type off, so maybe the dependency is only on the UI.
Your argument makes sense though, that's what I meant by "4 separate options". Happy to get the ability in any way. :)
igallart commentedon Feb 8, 2024
Hi, is there any date if it will be implemented? I think it is important when you want to switch to many repositories massively.
VOVELEE commentedon Feb 13, 2024
Any updates? It will be nice feature for batch changes
arifbalik commentedon Aug 7, 2024
I would love to see this added for the new release
BagToad commentedon Feb 4, 2025
A PR to resolve this was merged, but quickly reverted because #10363 (comment)
Closing as duplicate of #10092 because that is where the current core team has discussed and produced more thorough Acceptance Criteria for this feature.