Skip to content

Commit 1c601b5

Browse files
authored
Merge branch 'main' into lunny/move_admin_router
2 parents 5fe4f3d + dd83cfc commit 1c601b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2027
-255
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ replace github.com/hashicorp/go-version => github.com/6543/go-version v1.3.1
331331

332332
replace github.com/shurcooL/vfsgen => github.com/lunny/vfsgen v0.0.0-20220105142115-2c99e1ffdfa0
333333

334-
replace github.com/nektos/act => gitea.com/gitea/act v0.259.1
334+
replace github.com/nektos/act => gitea.com/gitea/act v0.261.3
335335

336336
replace github.com/charmbracelet/git-lfs-transfer => gitea.com/gitea/git-lfs-transfer v0.2.0
337337

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
1616
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
1717
git.sr.ht/~mariusor/go-xsd-duration v0.0.0-20220703122237-02e73435a078 h1:cliQ4HHsCo6xi2oWZYKWW4bly/Ory9FuTpFPRxj/mAg=
1818
git.sr.ht/~mariusor/go-xsd-duration v0.0.0-20220703122237-02e73435a078/go.mod h1:g/V2Hjas6Z1UHUp4yIx6bATpNzJ7DYtD0FG3+xARWxs=
19-
gitea.com/gitea/act v0.259.1 h1:8GG1o/xtUHl3qjn5f0h/2FXrT5ubBn05TJOM5ry+FBw=
20-
gitea.com/gitea/act v0.259.1/go.mod h1:UxZWRYqQG2Yj4+4OqfGWW5a3HELwejyWFQyU7F1jUD8=
19+
gitea.com/gitea/act v0.261.3 h1:BhiYpGJQKGq0XMYYICCYAN4KnsEWHyLbA6dxhZwFcV4=
20+
gitea.com/gitea/act v0.261.3/go.mod h1:Pg5C9kQY1CEA3QjthjhlrqOC/QOT5NyWNjOjRHw23Ok=
2121
gitea.com/gitea/git-lfs-transfer v0.2.0 h1:baHaNoBSRaeq/xKayEXwiDQtlIjps4Ac/Ll4KqLMB40=
2222
gitea.com/gitea/git-lfs-transfer v0.2.0/go.mod h1:UrXUCm3xLQkq15fu7qlXHUMlrhdlXHoi13KH2Dfiits=
2323
gitea.com/go-chi/binding v0.0.0-20240430071103-39a851e106ed h1:EZZBtilMLSZNWtHHcgq2mt6NSGhJSZBuduAlinMEmso=

models/issues/pull_list.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type PullRequestsOptions struct {
2626
SortType string
2727
Labels []int64
2828
MilestoneID int64
29+
PosterID int64
2930
}
3031

3132
func listPullRequestStatement(ctx context.Context, baseRepoID int64, opts *PullRequestsOptions) *xorm.Session {
@@ -46,6 +47,10 @@ func listPullRequestStatement(ctx context.Context, baseRepoID int64, opts *PullR
4647
sess.And("issue.milestone_id=?", opts.MilestoneID)
4748
}
4849

50+
if opts.PosterID > 0 {
51+
sess.And("issue.poster_id=?", opts.PosterID)
52+
}
53+
4954
return sess
5055
}
5156

models/user/user.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ func (u *User) IsIndividual() bool {
408408
return u.Type == UserTypeIndividual
409409
}
410410

411+
func (u *User) IsUser() bool {
412+
return u.Type == UserTypeIndividual || u.Type == UserTypeBot
413+
}
414+
411415
// IsBot returns whether or not the user is of type bot
412416
func (u *User) IsBot() bool {
413417
return u.Type == UserTypeBot

modules/git/git.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ func SetExecutablePath(path string) error {
111111

112112
func ensureGitVersion() error {
113113
if !DefaultFeatures().CheckVersionAtLeast(RequiredVersion) {
114-
moreHint := "get git: https://git-scm.com/download/"
114+
moreHint := "get git: https://git-scm.com/downloads"
115115
if runtime.GOOS == "linux" {
116116
// there are a lot of CentOS/RHEL users using old git, so we add a special hint for them
117117
if _, err := os.Stat("/etc/redhat-release"); err == nil {
118118
// ius.io is the recommended official(git-scm.com) method to install git
119-
moreHint = "get git: https://git-scm.com/download/linux and https://ius.io"
119+
moreHint = "get git: https://git-scm.com/downloads/linux and https://ius.io"
120120
}
121121
}
122122
return fmt.Errorf("installed git version %q is not supported, Gitea requires git version >= %q, %s", DefaultFeatures().gitVersion.Original(), RequiredVersion, moreHint)

options/gitignore/KiCad

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ _autosave-*
1616
*-save.pro
1717
*-save.kicad_pcb
1818
fp-info-cache
19+
~*.lck
20+
\#auto_saved_files#
1921

2022
# Netlist files (exported from Eeschema)
2123
*.net
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
SENDMAIL OPEN SOURCE LICENSE
2+
3+
The following license terms and conditions apply to this open source
4+
software ("Software"), unless a different license is obtained directly
5+
from Sendmail, Inc. ("Sendmail") located at 6475 Christie Ave, Suite 350,
6+
Emeryville, CA 94608, USA.
7+
8+
Use, modification and redistribution (including distribution of any
9+
modified or derived work) of the Software in source and binary forms is
10+
permitted only if each of the following conditions of 1-6 are met:
11+
12+
1. Redistributions of the Software qualify as "freeware" or "open
13+
source software" under one of the following terms:
14+
15+
(a) Redistributions are made at no charge beyond the reasonable
16+
cost of materials and delivery; or
17+
18+
(b) Redistributions are accompanied by a copy of the modified
19+
Source Code (on an acceptable machine-readable medium) or by an
20+
irrevocable offer to provide a copy of the modified Source Code
21+
(on an acceptable machine-readable medium) for up to three years
22+
at the cost of materials and delivery. Such redistributions must
23+
allow further use, modification, and redistribution of the Source
24+
Code under substantially the same terms as this license. For
25+
the purposes of redistribution "Source Code" means the complete
26+
human-readable, compilable, linkable, and operational source
27+
code of the redistributed module(s) including all modifications.
28+
29+
2. Redistributions of the Software Source Code must retain the
30+
copyright notices as they appear in each Source Code file, these
31+
license terms and conditions, and the disclaimer/limitation of
32+
liability set forth in paragraph 6 below. Redistributions of the
33+
Software Source Code must also comply with the copyright notices
34+
and/or license terms and conditions imposed by contributors on
35+
embedded code. The contributors' license terms and conditions
36+
and/or copyright notices are contained in the Source Code
37+
distribution.
38+
39+
3. Redistributions of the Software in binary form must reproduce the
40+
Copyright Notice described below, these license terms and conditions,
41+
and the disclaimer/limitation of liability set forth in paragraph
42+
6 below, in the documentation and/or other materials provided with
43+
the binary distribution. For the purposes of binary distribution,
44+
"Copyright Notice" refers to the following language: "Copyright (c)
45+
1998-2009 Sendmail, Inc. All rights reserved."
46+
47+
4. Neither the name, trademark or logo of Sendmail, Inc. (including
48+
without limitation its subsidiaries or affiliates) or its contributors
49+
may be used to endorse or promote products, or software or services
50+
derived from this Software without specific prior written permission.
51+
The name "sendmail" is a registered trademark and service mark of
52+
Sendmail, Inc.
53+
54+
5. We reserve the right to cancel this license if you do not comply with
55+
the terms. This license is governed by California law and both of us
56+
agree that for any dispute arising out of or relating to this Software,
57+
that jurisdiction and venue is proper in San Francisco or Alameda
58+
counties. These license terms and conditions reflect the complete
59+
agreement for the license of the Software (which means this supercedes
60+
prior or contemporaneous agreements or representations). If any term
61+
or condition under this license is found to be invalid, the remaining
62+
terms and conditions still apply.
63+
64+
6. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY
65+
SENDMAIL AND ITS CONTRIBUTORS "AS IS" WITHOUT WARRANTY OF ANY KIND
66+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
67+
IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT AND FITNESS FOR A
68+
PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. IN NO EVENT SHALL SENDMAIL
69+
OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
70+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
71+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
72+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
73+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
74+
WITHOUT LIMITATION NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
75+
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

options/license/harbour-exception

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
As a special exception, the Harbour Project gives permission for
2+
additional uses of the text contained in its release of Harbour.
3+
4+
The exception is that, if you link the Harbour libraries with other
5+
files to produce an executable, this does not by itself cause the
6+
resulting executable to be covered by the GNU General Public License.
7+
Your use of that executable is in no way restricted on account of
8+
linking the Harbour library code into it.
9+
10+
This exception does not however invalidate any other reasons why
11+
the executable file might be covered by the GNU General Public License.
12+
13+
This exception applies only to the code released by the Harbour
14+
Project under the name Harbour. If you copy code from other
15+
Harbour Project or Free Software Foundation releases into a copy of
16+
Harbour, as the General Public License permits, the exception does
17+
not apply to the code that you add in this way. To avoid misleading
18+
anyone as to the status of such modified files, you must delete
19+
this exception notice from them.
20+
21+
If you write modifications of your own for Harbour, it is your choice
22+
whether to permit this exception to apply to your modifications.
23+
If you do not wish that, delete this exception notice.

options/locale/locale_fr-FR.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ lang_select_error=Sélectionnez une langue dans la liste.
580580

581581
username_been_taken=Le nom d'utilisateur est déjà pris.
582582
username_change_not_local_user=Les utilisateurs non-locaux n'ont pas le droit de modifier leur nom d'utilisateur.
583+
change_username_disabled=Le changement de nom d’utilisateur est désactivé.
584+
change_full_name_disabled=Le changement de nom complet est désactivé.
583585
username_has_not_been_changed=Le nom d'utilisateur n'a pas été modifié
584586
repo_name_been_taken=Ce nom de dépôt est déjà utilisé.
585587
repository_force_private=Force Private est activé : les dépôts privés ne peuvent pas être rendus publics.
@@ -1039,6 +1041,7 @@ issue_labels_helper=Sélectionner un jeu de label.
10391041
license=Licence
10401042
license_helper=Sélectionner une licence
10411043
license_helper_desc=Une licence réglemente ce que les autres peuvent ou ne peuvent pas faire avec votre code. Vous ne savez pas laquelle est la bonne pour votre projet ? Comment <a target="_blank" rel="noopener noreferrer" href="%s">choisir une licence</a>.
1044+
multiple_licenses=Licences multiples
10421045
object_format=Format d'objet
10431046
object_format_helper=Format d’objet pour ce dépôt. Ne peut être modifié plus tard. SHA1 est le plus compatible.
10441047
readme=LISEZMOI
@@ -1834,7 +1837,7 @@ pulls.is_empty=Les changements sur cette branche sont déjà sur la branche cibl
18341837
pulls.required_status_check_failed=Certains contrôles requis n'ont pas réussi.
18351838
pulls.required_status_check_missing=Certains contrôles requis sont manquants.
18361839
pulls.required_status_check_administrator=En tant qu'administrateur, vous pouvez toujours fusionner cette requête de pull.
1837-
pulls.blocked_by_approvals=Cette demande d'ajout n’est pas suffisamment approuvée. %d approbations obtenues sur %d.
1840+
pulls.blocked_by_approvals=Cette demande dajout n’est pas suffisamment approuvée. %d approbations obtenues sur %d.
18381841
pulls.blocked_by_approvals_whitelisted=Cette demande d’ajout n’a pas encore assez d’approbations. %d sur %d approbations de la part des utilisateurs ou équipes sur la liste autorisée.
18391842
pulls.blocked_by_rejection=Cette demande d’ajout nécessite des corrections sollicitées par un évaluateur officiel.
18401843
pulls.blocked_by_official_review_requests=Cette demande d’ajout a des sollicitations officielles d’évaluation.
@@ -2940,6 +2943,7 @@ dashboard.start_schedule_tasks=Démarrer les tâches planifiées
29402943
dashboard.sync_branch.started=Début de la synchronisation des branches
29412944
dashboard.sync_tag.started=Synchronisation des étiquettes
29422945
dashboard.rebuild_issue_indexer=Reconstruire l’indexeur des tickets
2946+
dashboard.sync_repo_licenses=Synchroniser les licences du dépôt
29432947

29442948
users.user_manage_panel=Gestion du compte utilisateur
29452949
users.new_account=Créer un compte

0 commit comments

Comments
 (0)