Skip to content

Shorten commit message in commits tab#5446

Merged
kjlundsgaard merged 2 commits into
masterfrom
shorten-commit-message
May 25, 2017
Merged

Shorten commit message in commits tab#5446
kjlundsgaard merged 2 commits into
masterfrom
shorten-commit-message

Conversation

@kjlundsgaard

@kjlundsgaard kjlundsgaard commented May 25, 2017

Copy link
Copy Markdown

Truncates commit message in commits tab on first line or uses truncate class otherwise

Fixes #5444

}

let firstLine = message.split(/\n/)[0];
if (firstLine.length > 100) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First lines in git are expected and anticipated to be 50 characters. Most git UI things use this.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd do this truncation in CSS ... cause we can do some style ellipsis stuff. I can show you.

@macqueen macqueen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❇️

@kjlundsgaard kjlundsgaard merged commit b460ffb into master May 25, 2017
@kjlundsgaard kjlundsgaard deleted the shorten-commit-message branch May 25, 2017 17:55
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In commit tab, show only first line

4 participants