This commit is contained in:
Anbraten 2024-05-14 13:02:23 +02:00
parent c49bfbe651
commit a4320f1efd
2 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,13 @@
Some versions need some changes to the server configuration or the pipeline configuration files.
<!--
## 3.0.0
- Update all webhooks by pressing the "Repair all" button in the admin settings as the webhook token claims have changed
-->
## `next`
- Deprecated `steps.[name].group` in favor of `steps.[name].depends_on` (see [workflow syntax](./20-usage/20-workflow-syntax.md#depends_on) to learn how to set dependencies)

View file

@ -189,6 +189,8 @@ func PostHook(c *gin.Context) {
c.String(http.StatusBadRequest, msg)
return
}
// TODO: remove fallback for text full name in next major release
verifiedKey := parsedToken.Get("repo-id") == strconv.FormatInt(repo.ID, 10) || parsedToken.Get("text") == currentRepoFullName
if !verifiedKey {
verifiedKey, err = _store.HasRedirectionForRepo(repo.ID, repo.FullName)