-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple improvements to GitLab push event formatting #309
Conversation
Sorry, pressed the button without thinking |
Yeah, it is "Ready for review" in the sense that I want you to look at it, I drafted because I wanted to discuss before merging, which we don't have a button for. |
I copied it from the tag push code I suspect. I don't really have an opinion on keeping it that way.
I would be okay with doing that, but maybe include the last commit so there is "some" context about what happened (e.g. a merge, fix, whatever). Possibly the same behaviour as with 1 commit, but with a link to the rest.
GitLab should still give you the total commit count (in
Happy for you to make that configurable via room state :)
I think there might be some prior art in the GitHubRepo code you could use as inspiration? Having it linked felt prominent enough to me. |
This sounds good
I somehow missed this field existed, excellent.
Oof ok I declare that beyond the scope of this quick PR but maybe eventually when it's rusted so I can tackle that and learn rust instead of js 😜
I don't think I understand what you're saying. Anyway here is a comparison of a GitLab push using
Anyway, doing this here would mean all the other events should follow this scheme as well, but for this consistency alone it might be worth it. |
Re: lists of commits, I've seen https://matrix.to/#/#android-announcements:schildi.chat use |
I'm wondering if the repo prominence thing could be fixed in a separate PR? |
(nheko uses maubot-gitlab) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable otherwise.
@HarHarLinks can you make the title more helpful too :) |
(CI is broken because current main is broken which I merged due to merge conflict. I can merge main again once it's fixed if you like) |
This PR accomplishes
2these changes to the rendering of GitLab events:<details>
commit listsI also want to discuss:
**strong**
, hyperlinked and in the first line before everything else, like a heading (but an actual<h1>
would be too much)Signed-off-by: Kim Brose kim.brose@rwth-aachen.de