[PR #3424] [MERGED] Fix SQL type error for webhooks #16937

Closed
opened 2025-11-02 12:22:31 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3424
Author: @ethantkoenig
Created: 1/28/2018
Status: Merged
Merged: 1/29/2018
Merged by: @lafriks

Base: masterHead: fix/hook


📝 Commits (2)

  • 7de4857 Fix SQL type error for webhooks
  • 3fed3c0 add space to log msg

📊 Changes

1 file changed (+10 additions, -3 deletions)

View changed files

📝 models/webhook.go (+10 -3)

📄 Description

HookQueue contains strings, and we forget to convert the string to an int. As a result, webhooks are not properly fired (at least for MySQL, not sure about other RDBMSs)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3424 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 1/28/2018 **Status:** ✅ Merged **Merged:** 1/29/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `fix/hook` --- ### 📝 Commits (2) - [`7de4857`](https://github.com/go-gitea/gitea/commit/7de4857c0e53d3f72eebaee2ee6d8806f977900c) Fix SQL type error for webhooks - [`3fed3c0`](https://github.com/go-gitea/gitea/commit/3fed3c09b2686e12c8cc57eed4d57780acdf25d0) add space to log msg ### 📊 Changes **1 file changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `models/webhook.go` (+10 -3) </details> ### 📄 Description `HookQueue` contains strings, and we forget to convert the string to an int. As a result, webhooks are not properly fired (at least for MySQL, not sure about other RDBMSs) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:22:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16937