Open DanieleSky opened 1 year ago
Hmm… I'm not sure, but isn't that intended behavior? I mean, I can somewhat see why both are needed. Additionally, changing the current behavior would be breaking for anyone else who already relies on the webhook providing the API URL…
OK, I understand your point of view. But as user, I would like to click on the link "view in gitea" and view the UI not the api. Is possible to add a setting ex "Link type" where the user can select if the link "view in gitea" will be a API url o UI url?
Maybe we can add an extra html_url
in the json.
Hi @lunny but in this case the button "view in gitea" will use the html_url? I think that the best solution is a webhook parameter where the user can specify if the button "view in gitea" will use the api_url or the html_url. What do you think?
I've noticed the same issue with Discord Release Webhook and I'd argue in favor of changing it to WebUI link:
* Of course, you could use them like that with bots scanning messages, but I feel that's custom webhook territory, not something for basic out of the box notifications, and even then you would probably hide it in message metadata instead of putting it in the message title link.
I also understand with colleagues that html_url (WebUI) is more usual. I realized that in the last version it is present but I can't choose to use it in the link.
Description
Hi, I've implemented a webhook from Gitea to MS Teams that is triggered when a new release is published. All works but the link on button "View in Gitea" is the link of the API and not the WebUI.
For example:
Shouldn't be http://gitea.dinamoretail.lan/Var4Retail/Dinamo.Web.API.ReteVendita/releases/tag/v0.10.1 ?
Thanks
Gitea Version
1.18.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
We are running Gitea from binary on Debian 11
Database
MySQL