Skip to content

Question: how to disable limiting the merge commit message length #2178

Closed

Description

@pkoch

Limiting the merge commit message really cramps my style. It forces me to have custom messages (i.e., automation can't rely on the standard anymore) and it just adds friction to merging commits and adds no real value to me.

Is there a way to disable adding this check?

Activity

  1. sindresorhus commented on Jun 26, 2019

    @sindresorhus
    Member

    You can disable this and most of the features in the extension options.

  2. pkoch commented on Jun 26, 2019

    @pkoch
    Author

    Can you point out how? I've tried scanning the list visually a few times and failed.

  3. fregante commented on Jun 26, 2019

    @fregante
    Member

    The limit is on GitHub’s servers. We actually added a feature to make the limit more visible client-side, but the limit was already there

    #2115

  4. pkoch commented on Jun 26, 2019

    @pkoch
    Author

    The limit is on GitHub’s servers

    For reference, this is not what I observe. If I turn off refined-github, I can merge the PRs just fine and things do show up in the repo just fine.

    #2115

    Thank you for referring the issue! This was super helpful! I now know that I need to disable limit-commit-title-length. 💕

    Thanks for helping!

  5. notlmn commented on Jun 26, 2019

    @notlmn
    Contributor

    For reference, this is not what I observe. If I turn off refined-github, I can merge the PRs just fine and things do show up in the repo just fine.

    GitHub doesn't exactly stop you from merging PRs but any commit title with length above 72 characters is automatically broken down to "commit title" and "commit description" components in GitHub's UI (eg: ed0ace7).

    image

    If GH does this anyway, we figured it'd be best practice to limit commit title length while merging PRs itself.

    (And when using RGH to merge PRs the PR number is appended to the end of commit title. If the PR title is too long the PR number at the end of merged commits, like example above, is separated from actual title)

  6. pkoch commented on Jun 26, 2019

    @pkoch
    Author

    The way that you're presenting the problem tackles a side of it that's really not relevant to me, which is how GH has decided to present info in their interface. If GH wants to do funny UI things with it, so be it, but I care much more about what actually goes into the commit message on git.

    I'm not trying to advocate to change the default behaviour, just exuding how I see the world.

    (Yeah, I have that turned off too, since that gets in my way for my workflow and tooling.)

  7. notlmn commented on Jun 26, 2019

    @notlmn
    Contributor

    Yup, the ability to disable features is just there so that you can tailor it to your workflow.

    We implemented this to be a best practice, to write everything you want to say in commit description and only a short single descriptive line in commit title (that is less than 72 characters).

    TBH, GH doesn't do funny things with it's UI (maybe in some cases but not when it comes to the Git part). GH has professionals working on interfacing GitHub's UI with Git, and they have a lot more experience with Git than you or me. We respect their decision on the 72 char text break, as it doesn't actually make sense to write anything more in the title.

    We try to follow GHs style as much as possible.

  8. pkoch commented on Jun 26, 2019

    @pkoch
    Author

    We implemented this to be a best practice

    One man's best practice is another man's demise.

    they have a lot more experience with Git than you or me

    I find it surprising that you're aware of my experience with git.

    TBH, GH doesn't do funny things with it's UI

    I'm sensing that my use of the word "funny" was triggering to you. I was trying to be light-hearted, perhaps I ended up being read as flippant. I'm sorry if I've upset you, that was not my intention.

    We respect their decision on the 72 char text break, as it doesn't actually make sense to write anything more in the title.

    In your scenarios, perhaps. I have my reasons to want that in merge commits.

    We try to follow GHs style as much as possible.

    Makes perfect sense, and it'll probably serve most people very well.

    I'm sorry if I've made your day worse when all that your extension has done is help me. I'd like to underline how grateful I am to be able to use it, and I'm very open to receive feedback on how to make your life better when investing in it for all of us.

  9. fregante commented on Jun 26, 2019

    @fregante
    Member

    Indeed, there's no actual limit, GH only clips the length on the website

    Committed on the website, shows clipped:
    3a55f54

    But in reality it's not:

  10. pkoch commented on Jun 26, 2019

    @pkoch
    Author

    Indeed, that's what I observe too! It was surprising to me that RGH limited the input field so harshly (not just a warning, but outright preventing submission), but I see how it can make sense given the philosophy that's being followed.

    Thanks for taking the time to confirm, @bfred-it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions