You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you setup a Discord webhook with Gitea and push more than 5 commits, it will only show 5 commits and will only say you pushed 5 commits.
While it makes sense to truncate the amount of commits shown on the Discord embed, the issue is that the text says that only 5 commits were pushed and the the link only shows 5 commits.
Fixes#21379
The commits are capped by `setting.UI.FeedMaxCommitNum` so
`len(commits)` is not the correct number. So this PR adds a new
`TotalCommits` field.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
KN4CK3R
added a commit
to KN4CK3R/gitea
that referenced
this issue
Oct 16, 2022
Fixesgo-gitea#21379
The commits are capped by `setting.UI.FeedMaxCommitNum` so
`len(commits)` is not the correct number. So this PR adds a new
`TotalCommits` field.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Description
If you setup a Discord webhook with Gitea and push more than 5 commits, it will only show 5 commits and will only say you pushed 5 commits.
While it makes sense to truncate the amount of commits shown on the Discord embed, the issue is that the text says that only 5 commits were pushed and the the link only shows 5 commits.
(Test Repository: https://try.gitea.io/TheBrokenRail/Discord-Webhook-Bug)
Gitea Version
1.17.2
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
Can't find any relevant logs for webhooks.
Screenshots
Git Version
2.36.2
Operating System
Ubuntu + Docker
How are you running Gitea?
I'm using the official Docker image.
Database
SQLite
The text was updated successfully, but these errors were encountered: