Skip to content

Fix message wrapping on PR commit list#11616

Merged
zeripath merged 9 commits into
go-gitea:masterfrom
CirnoT:wrap-pr-commit
Jun 3, 2020
Merged

Fix message wrapping on PR commit list#11616
zeripath merged 9 commits into
go-gitea:masterfrom
CirnoT:wrap-pr-commit

Conversation

@CirnoT
Copy link
Copy Markdown
Contributor

@CirnoT CirnoT commented May 25, 2020

Before:
chrome_2020-05-25_03-31-35

After:
chrome_2020-05-25_03-30-56

The example has exactly 100 characters but it's perfectly possible to remote-branch merges for branches with long names to take more, personally I have noticed it for message with 120 characters.

Merge branch 'very-very-long-branch_name' of git.some.domain.com:company/repository into very-very-long-branch_name

@zeripath
Copy link
Copy Markdown
Contributor

I wonder if we should just have these truncate rather than wrap?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 25, 2020
@CirnoT
Copy link
Copy Markdown
Contributor Author

CirnoT commented May 25, 2020

They are truncated when multi-line.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 26, 2020
Comment thread templates/repo/commits_list_small.tmpl Outdated
Co-authored-by: silverwind <me@silverwind.io>
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 27, 2020
@lafriks lafriks added the topic/ui Change the appearance of the Gitea UI label May 27, 2020
@lafriks lafriks added this to the 1.13.0 milestone May 27, 2020
@techknowlogick
Copy link
Copy Markdown
Member

please resolve conflicts

@zeripath
Copy link
Copy Markdown
Contributor

zeripath commented Jun 3, 2020

make lg-tm work

@zeripath zeripath merged commit 3ea5d86 into go-gitea:master Jun 3, 2020
@CirnoT CirnoT deleted the wrap-pr-commit branch June 3, 2020 11:42
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
* Fix message wrapping on PR commit list

* Update templates/repo/commits_list_small.tmpl

Co-authored-by: silverwind <me@silverwind.io>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants