From 4bd77a870b8f966073153f0f295e4415db6407ba Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 8 Sep 2022 14:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9Awebhook=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=95=B0=E9=87=8F=E9=99=90=E5=88=B6=E4=B8=BA50?= =?UTF-8?q?=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/v1/projects/webhooks_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api/v1/projects/webhooks_controller.rb b/app/controllers/api/v1/projects/webhooks_controller.rb index 1dec26d21..00a281009 100644 --- a/app/controllers/api/v1/projects/webhooks_controller.rb +++ b/app/controllers/api/v1/projects/webhooks_controller.rb @@ -10,6 +10,7 @@ class Api::V1::Projects::WebhooksController < Api::V1::BaseController end def create + return render_error("webhooks数量已到上限!请删除暂不使用的webhooks以进行添加操作") if @project.webhooks.size > 49 @result_object = Api::V1::Projects::Webhooks::CreateService.call(@project, create_webhook_params, current_user&.gitea_token) end