Skip to content

Commit bbeee09

Browse files
Merge branch 'main' into fix-arch-regex
2 parents 0b0cd4c + dc8f59b commit bbeee09

File tree

10 files changed

+65
-50
lines changed

10 files changed

+65
-50
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ require (
123123
github.com/yuin/goldmark-meta v1.1.0
124124
golang.org/x/crypto v0.31.0
125125
golang.org/x/image v0.21.0
126-
golang.org/x/net v0.30.0
126+
golang.org/x/net v0.33.0
127127
golang.org/x/oauth2 v0.23.0
128128
golang.org/x/sync v0.10.0
129129
golang.org/x/sys v0.28.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,8 @@ golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
932932
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
933933
golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
934934
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
935-
golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4=
936-
golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU=
935+
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
936+
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
937937
golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs=
938938
golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
939939
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

options/locale/locale_fr-FR.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ delete_preexisting_success=Fichiers dépossédés supprimés dans %s.
11091109
blame_prior=Voir le blame avant cette modification
11101110
blame.ignore_revs=Les révisions dans <a href="%s">.git-blame-ignore-revs</a> sont ignorées. Vous pouvez quand même <a href="%s">voir ces blâmes</a>.
11111111
blame.ignore_revs.failed=Impossible d'ignorer les révisions dans <a href="%s">.git-blame-ignore-revs</a>.
1112+
user_search_tooltip=Affiche un maximum de 30 utilisateurs
11121113

11131114
tree_path_not_found_commit=Le chemin %[1]s n’existe pas dans la révision %[2]s.
11141115
tree_path_not_found_branch=Le chemin %[1]s n’existe pas dans la branche %[2]s.
@@ -1527,6 +1528,8 @@ issues.filter_assignee=Assigné
15271528
issues.filter_assginee_no_select=Tous les assignés
15281529
issues.filter_assginee_no_assignee=Aucun assigné
15291530
issues.filter_poster=Auteur
1531+
issues.filter_user_placeholder=Rechercher des utilisateurs
1532+
issues.filter_user_no_select=Tous les utilisateurs
15301533
issues.filter_type=Type
15311534
issues.filter_type.all_issues=Tous les tickets
15321535
issues.filter_type.assigned_to_you=Qui vous sont assignés
@@ -2628,6 +2631,7 @@ release.new_release=Nouvelle publication
26282631
release.draft=Brouillon
26292632
release.prerelease=Pré-publication
26302633
release.stable=Stable
2634+
release.latest=Dernière
26312635
release.compare=Comparer
26322636
release.edit=Éditer
26332637
release.ahead.commits=<strong>%d</strong> révisions

options/locale/locale_ga-IE.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ delete_preexisting_success=Scriosta comhaid neamhghlactha i %s
11091109
blame_prior=Féach ar an milleán roimh an athrú seo
11101110
blame.ignore_revs=Ag déanamh neamhairde de leasuithe i <a href="%s">.git-blame-ignore-revs</a>. Cliceáil <a href="%s">anseo chun seachaint</a> agus an gnáth-amharc milleán a fheiceáil.
11111111
blame.ignore_revs.failed=Theip ar neamhaird a dhéanamh ar leasuithe i <a href="%s">.git-blame-ignore-revs</a>.
1112+
user_search_tooltip=Taispeáint uasmhéid de 30 úsáideoir
11121113

11131114
tree_path_not_found_commit=Níl cosán %[1]s ann i dtiomantas %[2]s
11141115
tree_path_not_found_branch=Níl cosán %[1]s ann i mbrainse %[2]s
@@ -1527,6 +1528,8 @@ issues.filter_assignee=Sannaitheoir
15271528
issues.filter_assginee_no_select=Gach sannaithe
15281529
issues.filter_assginee_no_assignee=Gan sannaitheoir
15291530
issues.filter_poster=Údar
1531+
issues.filter_user_placeholder=Cuardaigh úsáideoirí
1532+
issues.filter_user_no_select=Gach úsáideoir
15301533
issues.filter_type=Cineál
15311534
issues.filter_type.all_issues=Gach saincheist
15321535
issues.filter_type.assigned_to_you=Sannta duit
@@ -2628,6 +2631,7 @@ release.new_release=Scaoileadh Nua
26282631
release.draft=Dréacht
26292632
release.prerelease=Réamh-eisiúint
26302633
release.stable=Cobhsaí
2634+
release.latest=Is déanaí
26312635
release.compare=Déan comparáid
26322636
release.edit=cuir in eagar
26332637
release.ahead.commits=Geallann <strong>%d</strong>

options/locale/locale_ja-JP.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ confirm_delete_selected=選択したすべてのアイテムを削除してよ
145145

146146
name=名称
147147
value=値
148+
readme=Readme
148149

149150
filter=フィルター
150151
filter.clear=フィルターをクリア
@@ -1043,6 +1044,8 @@ generate_repo=リポジトリの生成
10431044
generate_from=他からの生成
10441045
repo_desc=説明
10451046
repo_desc_helper=簡単な説明を入力してください (オプション)
1047+
repo_no_desc=説明が提供されていません
1048+
repo_lang=言語
10461049
repo_gitignore_helper=.gitignoreテンプレートを選択してください。
10471050
repo_gitignore_helper_desc=一般的な言語のテンプレートリストから、追跡しないファイルの設定を選択します。 各言語のビルドツールが生成する典型的なファイルが、デフォルトで.gitignoreに含まれます。
10481051
issue_labels=イシューラベル
@@ -1924,6 +1927,10 @@ pulls.delete.title=このプルリクエストを削除しますか?
19241927
pulls.delete.text=本当にこのプルリクエストを削除しますか? (これはすべてのコンテンツを完全に削除します。 保存しておきたい場合は、代わりにクローズすることを検討してください)
19251928

19261929
pulls.recently_pushed_new_branches=%[2]s 、あなたはブランチ <strong>%[1]s</strong> にプッシュしました
1930+
pulls.upstream_diverging_prompt_behind_1=このブランチは %[2]s よりも %[1]d コミット遅れています
1931+
pulls.upstream_diverging_prompt_behind_n=このブランチは %[2]s よりも %[1]d コミット遅れています
1932+
pulls.upstream_diverging_prompt_base_newer=ベースブランチ %s に新しい変更があります
1933+
pulls.upstream_diverging_merge=フォークを同期
19271934

19281935
pull.deleted_branch=(削除済み):%s
19291936
pull.agit_documentation=AGitに関するドキュメントを確認する

services/convert/pull.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ func ToAPIPullRequest(ctx context.Context, pr *issues_model.PullRequest, doer *u
3131
err error
3232
)
3333

34+
if err = pr.LoadIssue(ctx); err != nil {
35+
log.Error("pr.LoadIssue[%d]: %v", pr.ID, err)
36+
return nil
37+
}
38+
3439
if err = pr.Issue.LoadRepo(ctx); err != nil {
3540
log.Error("pr.Issue.LoadRepo[%d]: %v", pr.ID, err)
3641
return nil

services/webhook/notifier.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,10 @@ func (m *webhookNotifier) CreateIssueComment(ctx context.Context, doer *user_mod
410410
var pullRequest *api.PullRequest
411411
if issue.IsPull {
412412
eventType = webhook_module.HookEventPullRequestComment
413+
if err := issue.LoadPullRequest(ctx); err != nil {
414+
log.Error("LoadPullRequest: %v", err)
415+
return
416+
}
413417
pullRequest = convert.ToAPIPullRequest(ctx, issue.PullRequest, doer)
414418
} else {
415419
eventType = webhook_module.HookEventIssueComment

web_src/js/components/RepoBranchTagSelector.vue

Lines changed: 30 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import {createApp, nextTick} from 'vue';
2+
import {nextTick} from 'vue';
33
import {SvgIcon} from '../svg.ts';
44
import {showErrorToast} from '../modules/toast.ts';
55
import {GET} from '../modules/fetch.ts';
@@ -17,11 +17,11 @@ type SelectedTab = 'branches' | 'tags';
1717
1818
type TabLoadingStates = Record<SelectedTab, '' | 'loading' | 'done'>
1919
20-
let currentElRoot: HTMLElement;
21-
2220
const sfc = {
2321
components: {SvgIcon},
24-
22+
props: {
23+
elRoot: HTMLElement,
24+
},
2525
computed: {
2626
searchFieldPlaceholder() {
2727
return this.selectedTab === 'branches' ? this.textFilterBranch : this.textFilterTag;
@@ -55,18 +55,15 @@ const sfc = {
5555
return `${this.currentRepoLink}/branches/_new/${this.currentRefType}/${pathEscapeSegments(this.currentRefShortName)}`;
5656
},
5757
},
58-
5958
watch: {
60-
menuVisible(visible) {
59+
menuVisible(visible: boolean) {
6160
if (!visible) return;
6261
this.focusSearchField();
6362
this.loadTabItems();
6463
},
6564
},
66-
6765
data() {
68-
const elRoot = currentElRoot;
69-
const shouldShowTabBranches = elRoot.getAttribute('data-show-tab-branches') === 'true';
66+
const shouldShowTabBranches = this.elRoot.getAttribute('data-show-tab-branches') === 'true';
7067
return {
7168
csrfToken: window.config.csrfToken,
7269
allItems: [] as ListItem[],
@@ -76,37 +73,35 @@ const sfc = {
7673
activeItemIndex: 0,
7774
tabLoadingStates: {} as TabLoadingStates,
7875
79-
textReleaseCompare: elRoot.getAttribute('data-text-release-compare'),
80-
textBranches: elRoot.getAttribute('data-text-branches'),
81-
textTags: elRoot.getAttribute('data-text-tags'),
82-
textFilterBranch: elRoot.getAttribute('data-text-filter-branch'),
83-
textFilterTag: elRoot.getAttribute('data-text-filter-tag'),
84-
textDefaultBranchLabel: elRoot.getAttribute('data-text-default-branch-label'),
85-
textCreateTag: elRoot.getAttribute('data-text-create-tag'),
86-
textCreateBranch: elRoot.getAttribute('data-text-create-branch'),
87-
textCreateRefFrom: elRoot.getAttribute('data-text-create-ref-from'),
88-
textNoResults: elRoot.getAttribute('data-text-no-results'),
89-
textViewAllBranches: elRoot.getAttribute('data-text-view-all-branches'),
90-
textViewAllTags: elRoot.getAttribute('data-text-view-all-tags'),
76+
textReleaseCompare: this.elRoot.getAttribute('data-text-release-compare'),
77+
textBranches: this.elRoot.getAttribute('data-text-branches'),
78+
textTags: this.elRoot.getAttribute('data-text-tags'),
79+
textFilterBranch: this.elRoot.getAttribute('data-text-filter-branch'),
80+
textFilterTag: this.elRoot.getAttribute('data-text-filter-tag'),
81+
textDefaultBranchLabel: this.elRoot.getAttribute('data-text-default-branch-label'),
82+
textCreateTag: this.elRoot.getAttribute('data-text-create-tag'),
83+
textCreateBranch: this.elRoot.getAttribute('data-text-create-branch'),
84+
textCreateRefFrom: this.elRoot.getAttribute('data-text-create-ref-from'),
85+
textNoResults: this.elRoot.getAttribute('data-text-no-results'),
86+
textViewAllBranches: this.elRoot.getAttribute('data-text-view-all-branches'),
87+
textViewAllTags: this.elRoot.getAttribute('data-text-view-all-tags'),
9188
92-
currentRepoDefaultBranch: elRoot.getAttribute('data-current-repo-default-branch'),
93-
currentRepoLink: elRoot.getAttribute('data-current-repo-link'),
94-
currentTreePath: elRoot.getAttribute('data-current-tree-path'),
95-
currentRefType: elRoot.getAttribute('data-current-ref-type'),
96-
currentRefShortName: elRoot.getAttribute('data-current-ref-short-name'),
89+
currentRepoDefaultBranch: this.elRoot.getAttribute('data-current-repo-default-branch'),
90+
currentRepoLink: this.elRoot.getAttribute('data-current-repo-link'),
91+
currentTreePath: this.elRoot.getAttribute('data-current-tree-path'),
92+
currentRefType: this.elRoot.getAttribute('data-current-ref-type'),
93+
currentRefShortName: this.elRoot.getAttribute('data-current-ref-short-name'),
9794
98-
refLinkTemplate: elRoot.getAttribute('data-ref-link-template'),
99-
refFormActionTemplate: elRoot.getAttribute('data-ref-form-action-template'),
100-
dropdownFixedText: elRoot.getAttribute('data-dropdown-fixed-text'),
95+
refLinkTemplate: this.elRoot.getAttribute('data-ref-link-template'),
96+
refFormActionTemplate: this.elRoot.getAttribute('data-ref-form-action-template'),
97+
dropdownFixedText: this.elRoot.getAttribute('data-dropdown-fixed-text'),
10198
showTabBranches: shouldShowTabBranches,
102-
showTabTags: elRoot.getAttribute('data-show-tab-tags') === 'true',
103-
allowCreateNewRef: elRoot.getAttribute('data-allow-create-new-ref') === 'true',
104-
showViewAllRefsEntry: elRoot.getAttribute('data-show-view-all-refs-entry') === 'true',
105-
106-
enableFeed: elRoot.getAttribute('data-enable-feed') === 'true',
99+
showTabTags: this.elRoot.getAttribute('data-show-tab-tags') === 'true',
100+
allowCreateNewRef: this.elRoot.getAttribute('data-allow-create-new-ref') === 'true',
101+
showViewAllRefsEntry: this.elRoot.getAttribute('data-show-view-all-refs-entry') === 'true',
102+
enableFeed: this.elRoot.getAttribute('data-enable-feed') === 'true',
107103
};
108104
},
109-
110105
beforeMount() {
111106
document.body.addEventListener('click', (e) => {
112107
if (this.$el.contains(e.target)) return;
@@ -219,16 +214,6 @@ const sfc = {
219214
},
220215
};
221216
222-
export function initRepoBranchTagSelector(selector) {
223-
for (const elRoot of document.querySelectorAll(selector)) {
224-
// it is very hacky, but it is the only way to pass the elRoot to the "data()" function
225-
// it could be improved in the future to do more rewriting.
226-
currentElRoot = elRoot;
227-
const comp = {...sfc};
228-
createApp(comp).mount(elRoot);
229-
}
230-
}
231-
232217
export default sfc; // activate IDE's Vue plugin
233218
</script>
234219
<template>

web_src/js/features/repo-legacy.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
initRepoPullRequestUpdate,
88
} from './repo-issue.ts';
99
import {initUnicodeEscapeButton} from './repo-unicode-escape.ts';
10-
import {initRepoBranchTagSelector} from '../components/RepoBranchTagSelector.vue';
1110
import {initRepoCloneButtons} from './repo-common.ts';
1211
import {initCitationFileCopyContent} from './citation.ts';
1312
import {initCompLabelEdit} from './comp/LabelEdit.ts';
@@ -20,6 +19,14 @@ import {hideElem, queryElemChildren, showElem} from '../utils/dom.ts';
2019
import {initRepoIssueCommentEdit} from './repo-issue-edit.ts';
2120
import {initRepoMilestone} from './repo-milestone.ts';
2221
import {initRepoNew} from './repo-new.ts';
22+
import {createApp} from 'vue';
23+
import RepoBranchTagSelector from '../components/RepoBranchTagSelector.vue';
24+
25+
function initRepoBranchTagSelector(selector: string) {
26+
for (const elRoot of document.querySelectorAll(selector)) {
27+
createApp(RepoBranchTagSelector, {elRoot}).mount(elRoot);
28+
}
29+
}
2330

2431
export function initBranchSelectorTabs() {
2532
const elSelectBranch = document.querySelector('.ui.dropdown.select-branch');

web_src/js/globals.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ declare module '*.vue' {
1414
export default component;
1515
// List of named exports from vue components, used to make `tsc` output clean.
1616
// To actually lint .vue files, `vue-tsc` is used because `tsc` can not parse them.
17-
export function initRepoBranchTagSelector(selector: string): void;
1817
export function initDashboardRepoList(): void;
1918
export function initRepositoryActionView(): void;
2019
}

0 commit comments

Comments
 (0)