File tree Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ import (
9
9
10
10
webhook_model "code.gitea.io/gitea/models/webhook"
11
11
12
- _ "github.com/mattn/go-sqlite3"
13
12
"github.com/stretchr/testify/assert"
14
13
"github.com/stretchr/testify/require"
14
+
15
+ _ "github.com/mattn/go-sqlite3"
15
16
)
16
17
17
18
func TestGetCustomPayload (t * testing.T ) {
Original file line number Diff line number Diff line change 7
7
<label for="payload_url">{{.i18n.Tr "repo.settings.payload_url"}}</label>
8
8
<input id="payload_url" name="payload_url" type="url" value="{{.Webhook.URL}}" autofocus required>
9
9
</div>
10
- <!-- <div class="field">
11
- <label>{{.i18n.Tr "repo.settings.http_method"}}</label>
12
- <div class="ui selection dropdown">
13
- <input type="hidden" id="http_method" name="http_method" value="{{if .Webhook.HTTPMethod}}{{.Webhook.HTTPMethod}}{{else}}POST{{end}}">
14
- <div class="default text"></div>
15
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
16
- <div class="menu">
17
- <div class="item" data-value="POST">POST</div>
18
- <div class="item" data-value="GET">GET</div>
19
- </div>
20
- </div>
21
- </div> -->
22
- <!-- <div class="field">
23
- <label>{{.i18n.Tr "repo.settings.content_type"}}</label>
24
- <div class="ui selection dropdown">
25
- <input type="hidden" id="content_type" name="content_type" value="{{if .Webhook.ContentType}}{{.Webhook.ContentType}}{{else}}1{{end}}">
26
- <div class="default text"></div>
27
- {{svg "octicon-triangle-down" 14 "dropdown icon"}}
28
- <div class="menu">
29
- <div class="item" data-value="1">application/json</div>
30
- <div class="item" data-value="2">application/x-www-form-urlencoded</div>
31
- </div>
32
- </div>
33
- </div> -->
34
10
<div class="required field {{if .Err_ChatID}}error{{end}}">
35
11
<label for="auth_token">{{.i18n.Tr "repo.settings.custom_auth_token"}}</label>
36
12
<input id="auth_token" name="auth_token" type="text" value="{{.CustomHook.AuthToken}}" required>
Original file line number Diff line number Diff line change 13562
13562
"telegram",
13563
13563
"feishu",
13564
13564
"wechatwork",
13565
- "packagist",
13566
- "custom"
13565
+ "packagist"
13567
13566
],
13568
13567
"x-go-name": "Type"
13569
13568
}
You can’t perform that action at this time.
0 commit comments