Skip to content

Commit 8803a97

Browse files
authored
Merge branch 'main' into support-issue-list
2 parents ae0298f + 89f31f7 commit 8803a97

File tree

23 files changed

+270
-94
lines changed

23 files changed

+270
-94
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM docker.io/library/golang:1.23-alpine3.20 AS build-env
2+
FROM docker.io/library/golang:1.23-alpine3.21 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY=${GOPROXY:-direct}
@@ -41,7 +41,7 @@ RUN chmod 755 /tmp/local/usr/bin/entrypoint \
4141
/go/src/code.gitea.io/gitea/environment-to-ini
4242
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete
4343

44-
FROM docker.io/library/alpine:3.20
44+
FROM docker.io/library/alpine:3.21
4545
LABEL maintainer="[email protected]"
4646

4747
EXPOSE 22 3000
@@ -78,7 +78,7 @@ ENV GITEA_CUSTOM=/data/gitea
7878
VOLUME ["/data"]
7979

8080
ENTRYPOINT ["/usr/bin/entrypoint"]
81-
CMD ["/bin/s6-svscan", "/etc/s6"]
81+
CMD ["/usr/bin/s6-svscan", "/etc/s6"]
8282

8383
COPY --from=build-env /tmp/local /
8484
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea

Dockerfile.rootless

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM docker.io/library/golang:1.23-alpine3.20 AS build-env
2+
FROM docker.io/library/golang:1.23-alpine3.21 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY=${GOPROXY:-direct}
@@ -39,7 +39,7 @@ RUN chmod 755 /tmp/local/usr/local/bin/docker-entrypoint.sh \
3939
/go/src/code.gitea.io/gitea/environment-to-ini
4040
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete
4141

42-
FROM docker.io/library/alpine:3.20
42+
FROM docker.io/library/alpine:3.21
4343
LABEL maintainer="[email protected]"
4444

4545
EXPOSE 2222 3000

modules/references/references.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var (
3232
// issueNumericPattern matches string that references to a numeric issue, e.g. #1287
3333
issueNumericPattern = regexp.MustCompile(`(?:\s|^|\(|\[|\'|\")([#!][0-9]+)(?:\s|$|\)|\]|\'|\"|[:;,.?!]\s|[:;,.?!]$)`)
3434
// issueAlphanumericPattern matches string that references to an alphanumeric issue, e.g. ABC-1234
35-
issueAlphanumericPattern = regexp.MustCompile(`(?:\s|^|\(|\[|\"|\')([A-Z]{1,10}-[1-9][0-9]*)(?:\s|$|\)|\]|:|\.(\s|$)|\"|\')`)
35+
issueAlphanumericPattern = regexp.MustCompile(`(?:\s|^|\(|\[|\"|\')([A-Z]{1,10}-[1-9][0-9]*)(?:\s|$|\)|\]|:|\.(\s|$)|\"|\'|,)`)
3636
// crossReferenceIssueNumericPattern matches string that references a numeric issue in a different repository
3737
// e.g. org/repo#12345
3838
crossReferenceIssueNumericPattern = regexp.MustCompile(`(?:\s|^|\(|\[)([0-9a-zA-Z-_\.]+/[0-9a-zA-Z-_\.]+[#!][0-9]+)(?:\s|$|\)|\]|[:;,.?!]\s|[:;,.?!]$)`)

modules/references/references_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ func TestRegExp_issueAlphanumericPattern(t *testing.T) {
462462
"ABC-123:",
463463
"\"ABC-123\"",
464464
"'ABC-123'",
465+
"ABC-123, unknown PR",
465466
}
466467
falseTestCases := []string{
467468
"RC-08",

modules/repository/license_test.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ func Test_getLicense(t *testing.T) {
3131
3232
Copyright (c) 2023 Gitea
3333
34-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
35-
36-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
37-
38-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39-
`,
34+
Permission is hereby granted`,
4035
wantErr: assert.NoError,
4136
},
4237
{
@@ -53,7 +48,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
5348
if !tt.wantErr(t, err, fmt.Sprintf("GetLicense(%v, %v)", tt.args.name, tt.args.values)) {
5449
return
5550
}
56-
assert.Equalf(t, tt.want, string(got), "GetLicense(%v, %v)", tt.args.name, tt.args.values)
51+
assert.Contains(t, string(got), tt.want, "GetLicense(%v, %v)", tt.args.name, tt.args.values)
5752
})
5853
}
5954
}

options/gitignore/AutomationStudio

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# gitignore template for B&R Automation Studio (AS) 4
2+
# website: https://www.br-automation.com/en-us/products/software/automation-software/automation-studio/
3+
4+
# AS temporary directories
5+
Binaries/
6+
Diagnosis/
7+
Temp/
8+
TempObjects/
9+
10+
# AS transfer files
11+
*artransfer.br
12+
*arTrsfmode.nv
13+
14+
# 'ignored' directory
15+
ignored/
16+
17+
# ARNC0ext
18+
*arnc0ext.br
19+
20+
# AS File types
21+
*.bak
22+
*.isopen
23+
*.orig
24+
*.log
25+
*.asar
26+
*.csvlog*
27+
*.set
28+
!**/Physical/**/*.set
29+
30+
# RevInfo variables
31+
*RevInfo.var

options/gitignore/Firebase

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Firebase build and deployment files
2+
/firebase-debug.log
3+
/firebase-debug.*.log
4+
.firebaserc
5+
6+
# Firebase Hosting
7+
/firebase.json
8+
*.cache
9+
hosting/.cache
10+
11+
# Firebase Functions
12+
/functions/node_modules/
13+
/functions/.env
14+
/functions/package-lock.json
15+
16+
# Firebase Emulators
17+
/firebase-*.zip
18+
/.firebase/
19+
/emulator-ui/
20+
21+
# Logs
22+
*.log
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# Environment files (local configs)
28+
/.env.*

options/gitignore/Modelica

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Modelica - an object-oriented language for modeling of cyber-physical systems
2+
# https://modelica.org/
3+
# Ignore temporary files, build results, simulation files
4+
5+
## Modelica-specific files
6+
*~
7+
*.bak
8+
*.bak-mo
9+
*.mof
10+
\#*\#
11+
*.moe
12+
*.mol
13+
14+
## Build artefacts
15+
*.exe
16+
*.exp
17+
*.o
18+
*.pyc
19+
20+
## Simulation files
21+
*.mat
22+
23+
## Package files
24+
*.gz
25+
*.rar
26+
*.tar
27+
*.zip
28+
29+
## Dymola-specific files
30+
buildlog.txt
31+
dsfinal.txt
32+
dsin.txt
33+
dslog.txt
34+
dsmodel*
35+
dsres.txt
36+
dymosim*
37+
request
38+
stat
39+
status
40+
stop
41+
success
42+
*.

options/gitignore/Python

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,6 @@ cython_debug/
166166
# and can be added to the global gitignore or merged into this file. For a more nuclear
167167
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
168168
#.idea/
169+
170+
# PyPI configuration file
171+
.pypirc

options/gitignore/TeX

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
## Bibliography auxiliary files (bibtex/biblatex/biber):
2828
*.bbl
29+
*.bbl-SAVE-ERROR
2930
*.bcf
3031
*.blg
3132
*-blx.aux

0 commit comments

Comments
 (0)