Skip to content

Commit b6662ee

Browse files
committed
fix
1 parent 6410c34 commit b6662ee

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,7 @@ pulls.upstream_diverging_prompt_behind_1 = This branch is %[1]d commit behind %[
19531953
pulls.upstream_diverging_prompt_behind_n = This branch is %[1]d commits behind %[2]s
19541954
pulls.upstream_diverging_prompt_base_newer = The base branch %s has new changes
19551955
pulls.upstream_diverging_merge = Sync fork
1956+
pulls.upstream_diverging_merge_confirm = Would you like to merge base repository's default branch onto this repository's branch %s?
19561957

19571958
pull.deleted_branch = (deleted):%s
19581959
pull.agit_documentation = Review documentation about AGit

templates/repo/code/upstream_diverging_info.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
{{end}}
1111
</div>
1212
{{if .CanWriteCode}}
13-
<button class="ui compact primary button tw-m-0 link-action" data-url="{{.Repository.Link}}/branches/merge-upstream?branch={{.BranchName}}">
13+
<button class="ui compact primary button tw-m-0 link-action"
14+
data-modal-confirm="{{ctx.Locale.Tr "repo.pulls.upstream_diverging_merge_confirm" .BranchName}}"
15+
data-url="{{.Repository.Link}}/branches/merge-upstream?branch={{.BranchName}}">
1416
{{ctx.Locale.Tr "repo.pulls.upstream_diverging_merge"}}
1517
</button>
1618
{{end}}

0 commit comments

Comments
 (0)