Beautify display of commit messages with bodies and/or footers #2270
-
Clear and concise description of the problemWhen committing with a structured message (e.g. following Conventional Commits specification), Woodpecker cramps the whole message together into one large string when displaying it in the repo commit list and the pipeline run title. This is usually pretty ugly and decreases readability. Suggested solutionA new environment variable CI_COMMIT_MESSAGE_HEADER could be added which would be used to populate the strings mentioned above. This would of course require parsing the commit message first. AlternativeAlternatively, a UI section for the body and footer of the commit message could be added below the pipeline run title to display those variables. All of the steps described above would still be necessary, but in addition, at least CI_COMMIT_MESSAGE_BODY (if one wants to treat body and footer as one) would have to be parsed and added as well. Additional contextNo response Validations
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
is it the same as #1314 (comment) ? |
Beta Was this translation helpful? Give feedback.
-
I'd go with yes and also the same as #1314 (comment) (which is also posted in the ui feedback) |
Beta Was this translation helpful? Give feedback.
-
Not quite, but it's the same topic for sure. While one of my concerns is the overflow mentioned in the linked comments, that could be caused by a very long commit message header as well. The mangling of commit message header, body and footer though is what mainly causes this overflow and also the ugly cap changes in the middle of the text. I'd like to avoid both by using one of the solutions mentioned above, not by cutting the text off at some specified length (which would still leave the cap changes unless one uses periods which looks weird in Github, Gitea etc.) If the issue thread you mentioned is the better place for this though, I'll gladly move it there. |
Beta Was this translation helpful? Give feedback.
-
This is fixed in |
Beta Was this translation helpful? Give feedback.
This is fixed in
next
.By default, only the commit title is shown, you can read the full message by hovering over it (a tool top will appear)