Browse Source

Merge branch 'develop' into standalone_develop

pull/342/head
yystopf 3 years ago
parent
commit
86372ff4b8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/api/v1/projects/webhooks/create_service.rb

+ 1
- 1
app/services/api/v1/projects/webhooks/create_service.rb View File

@@ -8,7 +8,7 @@ class Api::V1::Projects::Webhooks::CreateService < ApplicationService
validates :active, inclusion: {in: [true, false]}
validates :http_method, inclusion: { in: %w(POST GET), message: "请输入正确的请求方式"}
validates :content_type, inclusion: { in: %w(json form), message: "请输入正确的Content Type"}
validates :type, inclusion: {in: %w(gitea slack discord dingtalk telegram msteams feishu matrix jianmu), message: "请输入正确的Webhook Type"}
validates :type, inclusion: {in: %w(gitea slack discord dingtalk telegram msteams feishu matrix jianmu softbot), message: "请输入正确的Webhook Type"}
def initialize(project, params, token=nil)
@project = project
@owner = project&.owner.login


Loading…
Cancel
Save