Skip to content

Commit 15cd15b

Browse files
committed
Fix fmt
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 3348232 commit 15cd15b

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

services/webhook/custom_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ import (
99

1010
webhook_model "code.gitea.io/gitea/models/webhook"
1111

12-
_ "github.com/mattn/go-sqlite3"
1312
"github.com/stretchr/testify/assert"
1413
"github.com/stretchr/testify/require"
14+
15+
_ "github.com/mattn/go-sqlite3"
1516
)
1617

1718
func TestGetCustomPayload(t *testing.T) {

templates/repo/settings/webhook/custom.tmpl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,6 @@
77
<label for="payload_url">{{.i18n.Tr "repo.settings.payload_url"}}</label>
88
<input id="payload_url" name="payload_url" type="url" value="{{.Webhook.URL}}" autofocus required>
99
</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> -->
3410
<div class="required field {{if .Err_ChatID}}error{{end}}">
3511
<label for="auth_token">{{.i18n.Tr "repo.settings.custom_auth_token"}}</label>
3612
<input id="auth_token" name="auth_token" type="text" value="{{.CustomHook.AuthToken}}" required>

templates/swagger/v1_json.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13562,8 +13562,7 @@
1356213562
"telegram",
1356313563
"feishu",
1356413564
"wechatwork",
13565-
"packagist",
13566-
"custom"
13565+
"packagist"
1356713566
],
1356813567
"x-go-name": "Type"
1356913568
}

0 commit comments

Comments
 (0)