mattermost-plugin-gitlab icon indicating copy to clipboard operation
mattermost-plugin-gitlab copied to clipboard

mattermost channel should show helpful text when linking to private repos

Open ratancs opened this issue 6 years ago • 7 comments

A a receiver of a link, I see a sign in text when my colleague shares link of a private repo.

alt text

ratancs avatar Sep 10 '19 22:09 ratancs

Also want this for our self hosted GitLab.

related to #212 ?

ftab avatar Apr 22 '22 01:04 ftab

Would be awesome if this was possible.

spirrello avatar Mar 08 '24 21:03 spirrello

This is currently unrelated to the gitlab plugin, as this is rendered by the webapp itself based on the open graph data we get from the unauthenticated request to GitLab. However, we could implement this in the plugin with https://developers.mattermost.com/integrate/reference/webapp/webapp-reference/#registerPostWillRenderEmbedComponent, by fetching this per-user at runtime. @hanzei What do you think?

mickmister avatar Mar 09 '24 16:03 mickmister

Implementing a custom render is a fine approach. I wonder if (additionally?) the server side API should expose a hook that allows plugins to provide an API token when fetching the post metadata. That fix would also work for mobile.

hanzei avatar Mar 11 '24 08:03 hanzei