Skip to content

Commit 205a392

Browse files
Merge branch 'go-gitea/main'
2 parents 004494c + a609cae commit 205a392

File tree

649 files changed

+8454
-4858
lines changed

Some content is hidden

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

649 files changed

+8454
-4858
lines changed

.air.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ tmp_dir = ".air"
55
cmd = "make backend"
66
bin = "gitea"
77
include_ext = ["go", "tmpl"]
8-
exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata"]
9-
include_dir = ["cmd", "models", "modules", "options", "routers", "services", "templates"]
8+
exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata", "models/fixtures", "models/migrations/fixtures", "modules/migration/file_format_testdata", "modules/avatar/identicon/testdata"]
9+
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]
1010
exclude_regex = ["_test.go$", "_gen.go$"]

.drone.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ steps:
551551

552552
# TODO: We should probably build all dependencies into a test image
553553
- name: test-e2e
554-
image: mcr.microsoft.com/playwright:v1.28.0-focal
554+
image: mcr.microsoft.com/playwright:v1.29.0-focal
555555
commands:
556556
- curl -sLO https://go.dev/dl/go1.19.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
557557
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
@@ -600,7 +600,7 @@ steps:
600600
from_secret: crowdin_key
601601

602602
- name: update
603-
image: alpine:3.13
603+
image: alpine:3.17
604604
pull: always
605605
commands:
606606
- ./build/update-locales.sh
@@ -928,10 +928,8 @@ trigger:
928928

929929
steps:
930930
- name: build-docs
931-
image: plugins/hugo:latest
932-
pull: always
931+
image: golang:1.19
933932
commands:
934-
- apk add --no-cache make bash curl
935933
- cd docs
936934
- make trans-copy clean build
937935

.eslintrc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ rules:
255255
no-irregular-whitespace: [2]
256256
no-iterator: [2]
257257
no-label-var: [2]
258-
no-labels: [0]
258+
no-labels: [0] # handled by no-restricted-syntax
259259
no-lone-blocks: [2]
260260
no-lonely-if: [0]
261261
no-loop-func: [0]
@@ -335,7 +335,7 @@ rules:
335335
no-void: [2]
336336
no-warning-comments: [0]
337337
no-whitespace-before-property: [2]
338-
no-with: [0]
338+
no-with: [0] # handled by no-restricted-syntax
339339
nonblock-statement-body-position: [2]
340340
object-curly-newline: [0]
341341
object-curly-spacing: [2, never]
@@ -495,7 +495,7 @@ rules:
495495
unicorn/prefer-native-coercion-functions: [2]
496496
unicorn/prefer-negative-index: [2]
497497
unicorn/prefer-node-append: [0]
498-
unicorn/prefer-node-protocol: [0]
498+
unicorn/prefer-node-protocol: [2]
499499
unicorn/prefer-node-remove: [0]
500500
unicorn/prefer-number-properties: [0]
501501
unicorn/prefer-object-from-entries: [2]

.golangci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
linters:
22
enable:
3-
- gosimple
4-
- deadcode
5-
- typecheck
6-
- govet
7-
- errcheck
8-
- staticcheck
9-
- unused
10-
- structcheck
11-
- varcheck
3+
- bidichk
4+
# - deadcode # deprecated - https://github.com/golangci/golangci-lint/issues/1841
5+
- depguard
126
- dupl
13-
#- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
14-
- gofmt
7+
- errcheck
158
- gocritic
16-
- bidichk
17-
- ineffassign
18-
- revive
9+
# - gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
10+
- gofmt
1911
- gofumpt
20-
- depguard
12+
- gosimple
13+
- govet
14+
- ineffassign
2115
- nakedret
22-
- unconvert
23-
- wastedassign
2416
- nolintlint
17+
- revive
18+
- staticcheck
19+
# - structcheck # deprecated - https://github.com/golangci/golangci-lint/issues/1841
2520
- stylecheck
21+
- typecheck
22+
- unconvert
23+
- unused
24+
# - varcheck # deprecated - https://github.com/golangci/golangci-lint/issues/1841
25+
# - wastedassign # disabled - https://github.com/golangci/golangci-lint/issues/2649
2626
enable-all: false
2727
disable-all: true
2828
fast: false

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,60 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7+
## [1.17.4](https://github.com/go-gitea/gitea/releases/tag/1.17.4) - 2022-12-21
8+
9+
* SECURITY
10+
* Do not allow Ghost access to limited visible user/org (#21849) (#21875)
11+
* Fix package access for admins and inactive users (#21580) (#21592)
12+
* ENHANCEMENTS
13+
* Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562) (#21927)
14+
* Fix vertical align of committer avatar rendered by email address (#21884) (#21919)
15+
* Fix setting HTTP headers after write (#21833) (#21874)
16+
* Ignore line anchor links with leading zeroes (#21728) (#21777)
17+
* Enable Monaco automaticLayout (#21516)
18+
* BUGFIXES
19+
* Do not list active repositories as unadopted (#22034) (#22167)
20+
* Correctly handle moved files in apply patch (#22118) (#22136)
21+
* Fix condition for is_internal (#22095) (#22131)
22+
* Fix permission check on issue/pull lock (#22114)
23+
* Fix sorting admin user list by last login (#22081) (#22106)
24+
* Workaround for container registry push/pull errors (#21862) (#22069)
25+
* Fix issue/PR numbers (#22037) (#22045)
26+
* Handle empty author names (#21902) (#22028)
27+
* Fix ListBranches to handle empty case (#21921) (#22025)
28+
* Fix enabling partial clones on 1.17 (#21809)
29+
* Prevent panic in doctor command when running default checks (#21791) (#21808)
30+
* Upgrade golang.org/x/crypto (#21792) (#21794)
31+
* Init git module before database migration (#21764) (#21766)
32+
* Set last login when activating account (#21731) (#21754)
33+
* Add HEAD fix to gitea doctor (#21352) (#21751)
34+
* Fix UI language switching bug (#21597) (#21748)
35+
* Remove semver compatible flag and change pypi to an array of test cases (#21708) (#21729)
36+
* Allow local package identifiers for PyPI packages (#21690) (#21726)
37+
* Fix repository adoption on Windows (#21646) (#21651)
38+
* Sync git hooks when config file path changed (#21619) (#21625)
39+
* Added check for disabled Packages (#21540) (#21614)
40+
* Fix `Timestamp.IsZero` (#21593) (#21604)
41+
* Fix issues count bug (#21600)
42+
* Support binary deploy in npm packages (#21589)
43+
* Update milestone counters when issue is deleted (#21459) (#21586)
44+
* SessionUser protection against nil pointer dereference (#21581)
45+
* Case-insensitive NuGet symbol file GUID (#21409) (#21575)
46+
* Suppress `ExternalLoginUserNotExist` error (#21504) (#21572)
47+
* Prevent Authorization header for presigned LFS urls (#21531) (#21569)
48+
* Update binding to fix bugs (#21560)
49+
* Fix generating compare link (#21519) (#21530)
50+
* Ignore error when retrieving changed PR review files (#21487) (#21524)
51+
* Fix incorrect notification commit url (#21479) (#21483)
52+
* Display total commit count in hook message (#21400) (#21481)
53+
* Enforce grouped NuGet search results (#21442) (#21480)
54+
* Return 404 when user is not found on avatar (#21476) (#21477)
55+
* Normalize NuGet package version on upload (#22186) (#22201)
56+
* MISC
57+
* Check for zero time instant in TimeStamp.IsZero() (#22171) (#22173)
58+
* Fix warn in database structs sync (#22111)
59+
* Allow for resolution of NPM registry paths that match upstream (#21568) (#21723)
60+
761
## [1.17.3](https://github.com/go-gitea/gitea/releases/tag/v1.17.3) - 2022-10-15
862

963
* SECURITY

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ To maintain understandable code and avoid circular dependencies it is important
190190
- **templates:** Golang templates for generating the html output.
191191
- **tests/e2e:** End to end tests
192192
- **tests/integration:** Integration tests
193+
- **tests/gitea-repositories-meta:** Sample repos used in integration tests. Adding a new repo requires editing `models/fixtures/repositories.yml` and `models/fixtures/repo_unit.yml` to match.
194+
- **tests/gitea-lfs-meta:** Sample LFS objects used in integration tests. Adding a new object requires editing `models/fixtures/lfs_meta_object.yml` to match.
193195
- **vendor:** External code that Gitea depends on.
194196

195197
## Documentation
@@ -439,7 +441,7 @@ be reviewed by two maintainers and must pass the automatic tests.
439441
Code that you contribute should use the standard copyright header:
440442

441443
```
442-
// Copyright 2022 The Gitea Authors. All rights reserved.
444+
// Copyright <year> The Gitea Authors. All rights reserved.
443445
// SPDX-License-Identifier: MIT
444446
445447
```

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.19-alpine3.16 AS build-env
2+
FROM golang:1.19-alpine3.17 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -26,7 +26,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2626
# Begin env-to-ini build
2727
RUN go build contrib/environment-to-ini/environment-to-ini.go
2828

29-
FROM alpine:3.16
29+
FROM alpine:3.17
3030
LABEL maintainer="[email protected]"
3131

3232
EXPOSE 22 3000

Dockerfile.gitea.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19-alpine3.16
1+
FROM golang:1.19-alpine3.17
22

33
ARG GOPROXY
44
ENV GOPROXY ${GOPROXY:-direct}

Dockerfile.rootless

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.19-alpine3.16 AS build-env
2+
FROM golang:1.19-alpine3.17 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -23,14 +23,15 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2323
# Begin env-to-ini build
2424
RUN go build contrib/environment-to-ini/environment-to-ini.go
2525

26-
FROM alpine:3.16
26+
FROM alpine:3.17
2727
LABEL maintainer="[email protected]"
2828

2929
EXPOSE 2222 3000
3030

3131
RUN apk --no-cache add \
3232
bash \
3333
ca-certificates \
34+
dumb-init \
3435
gettext \
3536
git \
3637
curl \
@@ -68,6 +69,6 @@ ENV HOME "/var/lib/gitea/git"
6869
VOLUME ["/var/lib/gitea", "/etc/gitea"]
6970
WORKDIR /var/lib/gitea
7071

71-
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
72+
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/usr/local/bin/docker-entrypoint.sh"]
7273
CMD []
7374

MAINTAINERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ Janis Estelmann <[email protected]> (@KN4CK3R)
4444
Steven Kriegler <[email protected]> (@justusbunsi)
4545
Jimmy Praet <[email protected]> (@jpraet)
4646
Leon Hofmeister <[email protected]> (@delvh)
47-
silentcode <[email protected]> (@silentcodeg)
4847
Wim <[email protected]> (@42wim)
49-
xinyu <[email protected]> (@penlinux)
48+
Xinyu Zhou <[email protected]> (@xin-u)
5049
Jason Song <[email protected]> (@wolfogre)
5150
Yarden Shoham <[email protected]> (@yardenshoham)

0 commit comments

Comments
 (0)