[PR #751] [MERGED] Bug fixes and unit tests for models/webhook #15555

Closed
opened 2025-11-02 11:49:19 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/751
Author: @ethantkoenig
Created: 1/25/2017
Status: Merged
Merged: 1/25/2017
Merged by: @lunny

Base: masterHead: tests/webhook


📝 Commits (1)

  • c0b39a3 Bug fixes and unit tests for models/webhook

📊 Changes

5 files changed (+312 additions, -20 deletions)

View changed files

models/fixtures/hook_task.yml (+5 -0)
models/fixtures/webhook.yml (+24 -0)
📝 models/setup_for_test.go (+2 -0)
📝 models/webhook.go (+18 -20)
models/webhook_test.go (+263 -0)

📄 Description

Unit tests for models/webhook.go, and fixes a SQL bug in GetActiveWebhooksByRepoID()


🔄 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/751 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 1/25/2017 **Status:** ✅ Merged **Merged:** 1/25/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `tests/webhook` --- ### 📝 Commits (1) - [`c0b39a3`](https://github.com/go-gitea/gitea/commit/c0b39a39b64e7dd6e2843ec9672e7e9b70142d5f) Bug fixes and unit tests for models/webhook ### 📊 Changes **5 files changed** (+312 additions, -20 deletions) <details> <summary>View changed files</summary> ➕ `models/fixtures/hook_task.yml` (+5 -0) ➕ `models/fixtures/webhook.yml` (+24 -0) 📝 `models/setup_for_test.go` (+2 -0) 📝 `models/webhook.go` (+18 -20) ➕ `models/webhook_test.go` (+263 -0) </details> ### 📄 Description Unit tests for `models/webhook.go`, and fixes a SQL bug in `GetActiveWebhooksByRepoID()` --- <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 11:49:19 -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#15555