Skip to content

Commit 7580432

Browse files
Fix linting issues.
1 parent 25f83a9 commit 7580432

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

models/webhook.go

Whitespace-only changes.

templates/admin/hook_new.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
{{template "repo/settings/webhook/dingtalk" .}}
5252
{{template "repo/settings/webhook/telegram" .}}
5353
{{template "repo/settings/webhook/msteams" .}}
54+
{{template "repo/settings/webhook/teamcity" .}}
5455
{{template "repo/settings/webhook/feishu" .}}
5556
{{template "repo/settings/webhook/matrix" .}}
5657
{{template "repo/settings/webhook/wechatwork" .}}

templates/repo/settings/webhook/new.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/telegram.png">
2222
{{else if eq .HookType "msteams"}}
2323
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/msteams.png">
24-
{{else if eq .HookType "teamcity"}}
24+
{{else if eq .HookType "teamcity"}}
2525
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/teamcity.svg">
2626
{{else if eq .HookType "feishu"}}
2727
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{{if eq .HookType "teamcity"}}
2-
<p>{{.i18n.Tr "repo.settings.add_web_hook_desc" "https://jetbrains.com/teamcity" (.i18n.Tr "repo.settings.web_hook_name_teamcity") | Str2html}}</p>
3-
<form class="ui form" action="{{.BaseLink}}/teamcity/{{or .Webhook.ID "new"}}" method="post">
4-
{{.CsrfTokenHtml}}
5-
<div class="required field {{if .Err_BotToken}}error{{end}}">
6-
<label for="host_url">{{.i18n.Tr "repo.settings.teamcity_host_url"}}</label>
7-
<input id="host_url" name="host_url" type="url" value="{{.TeamCityHook.HostUrl}}" autofocus required>
8-
</div>
9-
<div class="required field {{if .Err_ChatID}}error{{end}}">
10-
<label for="auth_token">{{.i18n.Tr "repo.settings.teamcity_auth_token"}}</label>
11-
<input id="auth_token" name="auth_token" type="text" value="{{.TeamCityHook.AuthToken}}" required>
12-
</div>
13-
<div class="required field {{if .Err_ChatID}}error{{end}}">
14-
<label for="vcs_root_id">{{.i18n.Tr "repo.settings.teamcity_vcs_root_id"}}</label>
15-
<input id="vcs_root_id" name="vcs_root_id" type="text" value="{{.TeamCityHook.VcsRootId}}" required>
16-
</div>
17-
{{template "repo/settings/webhook/settings" .}}
18-
</form>
2+
<p>{{.i18n.Tr "repo.settings.add_web_hook_desc" "https://jetbrains.com/teamcity" (.i18n.Tr "repo.settings.web_hook_name_teamcity") | Str2html}}</p>
3+
<form class="ui form" action="{{.BaseLink}}/teamcity/{{or .Webhook.ID "new"}}" method="post">
4+
{{.CsrfTokenHtml}}
5+
<div class="required field {{if .Err_BotToken}}error{{end}}">
6+
<label for="host_url">{{.i18n.Tr "repo.settings.teamcity_host_url"}}</label>
7+
<input id="host_url" name="host_url" type="url" value="{{.TeamCityHook.HostUrl}}" autofocus required>
8+
</div>
9+
<div class="required field {{if .Err_ChatID}}error{{end}}">
10+
<label for="auth_token">{{.i18n.Tr "repo.settings.teamcity_auth_token"}}</label>
11+
<input id="auth_token" name="auth_token" type="text" value="{{.TeamCityHook.AuthToken}}" required>
12+
</div>
13+
<div class="required field {{if .Err_ChatID}}error{{end}}">
14+
<label for="vcs_root_id">{{.i18n.Tr "repo.settings.teamcity_vcs_root_id"}}</label>
15+
<input id="vcs_root_id" name="vcs_root_id" type="text" value="{{.TeamCityHook.VcsRootId}}" required>
16+
</div>
17+
{{template "repo/settings/webhook/settings" .}}
18+
</form>
1919
{{end}}

templates/swagger/v1_json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13514,7 +13514,7 @@
1351413514
"gitea",
1351513515
"gogs",
1351613516
"msteams",
13517-
"teamcity",
13517+
"teamcity",
1351813518
"slack",
1351913519
"telegram",
1352013520
"feishu",

0 commit comments

Comments
 (0)