Skip to content

Commit 30e814b

Browse files
committed
Merge branch 'main' into support-markdown-editor-in-issue-tmpl
2 parents f26e1c9 + df00cca commit 30e814b

File tree

394 files changed

+3799
-11817
lines changed

Some content is hidden

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

394 files changed

+3799
-11817
lines changed

.air.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ include_file = ["main.go"]
1010
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]
1111
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"]
1212
exclude_regex = ["_test.go$", "_gen.go$"]
13+
stop_on_error = true

.drone.yml

+4-167
Original file line numberDiff line numberDiff line change
@@ -267,35 +267,6 @@ steps:
267267
- name: deps
268268
path: /go
269269

270-
---
271-
kind: pipeline
272-
type: docker
273-
name: compliance-docs
274-
275-
platform:
276-
os: linux
277-
arch: amd64
278-
279-
trigger:
280-
event:
281-
- pull_request
282-
paths:
283-
include:
284-
- "docs/**"
285-
- "*.md"
286-
287-
steps:
288-
- name: deps-frontend
289-
image: node:18
290-
pull: always
291-
commands:
292-
- make deps-frontend
293-
294-
- name: lint-md
295-
image: node:18
296-
commands:
297-
- make lint-md
298-
299270
---
300271
kind: pipeline
301272
type: docker
@@ -1033,49 +1004,6 @@ steps:
10331004
from_secret: github_token
10341005
depends_on: [gpg-sign]
10351006

1036-
---
1037-
kind: pipeline
1038-
type: docker
1039-
name: docs
1040-
1041-
platform:
1042-
os: linux
1043-
arch: arm64
1044-
1045-
depends_on:
1046-
- compliance
1047-
1048-
trigger:
1049-
event:
1050-
- push
1051-
- tag
1052-
- pull_request
1053-
paths:
1054-
include:
1055-
- "docs/**"
1056-
1057-
steps:
1058-
- name: build-docs
1059-
image: gitea/test_env:linux-1.20-arm64
1060-
commands:
1061-
- cd docs
1062-
- make trans-copy clean build
1063-
1064-
- name: publish-docs
1065-
image: techknowlogick/drone-netlify:latest
1066-
pull: always
1067-
settings:
1068-
path: docs/public/
1069-
site_id: d2260bae-7861-4c02-8646-8f6440b12672
1070-
environment:
1071-
NETLIFY_TOKEN:
1072-
from_secret: netlify_token
1073-
when:
1074-
branch:
1075-
- main
1076-
event:
1077-
- push
1078-
10791007
---
10801008
kind: pipeline
10811009
type: docker
@@ -1339,7 +1267,7 @@ steps:
13391267
pull: always
13401268
settings:
13411269
auto_tag: false
1342-
tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64
1270+
tags: ${DRONE_BRANCH##release/v}-nightly-linux-amd64
13431271
repo: gitea/gitea
13441272
build_args:
13451273
- GOPROXY=https://goproxy.io
@@ -1361,7 +1289,7 @@ steps:
13611289
settings:
13621290
dockerfile: Dockerfile.rootless
13631291
auto_tag: false
1364-
tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64-rootless
1292+
tags: ${DRONE_BRANCH##release/v}-nightly-linux-amd64-rootless
13651293
repo: gitea/gitea
13661294
build_args:
13671295
- GOPROXY=https://goproxy.io
@@ -1378,43 +1306,6 @@ steps:
13781306
exclude:
13791307
- pull_request
13801308

1381-
---
1382-
kind: pipeline
1383-
type: docker
1384-
name: docker-linux-arm64-dry-run
1385-
1386-
platform:
1387-
os: linux
1388-
arch: arm64
1389-
1390-
depends_on:
1391-
- compliance
1392-
1393-
trigger:
1394-
event:
1395-
- pull_request
1396-
paths:
1397-
exclude:
1398-
- "docs/**"
1399-
1400-
steps:
1401-
- name: dryrun
1402-
image: plugins/docker:latest
1403-
pull: always
1404-
settings:
1405-
dry_run: true
1406-
repo: gitea/gitea
1407-
tags: linux-arm64
1408-
build_args:
1409-
- GOPROXY=https://goproxy.io
1410-
environment:
1411-
PLUGIN_MIRROR:
1412-
from_secret: plugin_mirror
1413-
DOCKER_BUILDKIT: 1
1414-
when:
1415-
event:
1416-
- pull_request
1417-
14181309
---
14191310
kind: pipeline
14201311
type: docker
@@ -1681,7 +1572,7 @@ steps:
16811572
pull: always
16821573
settings:
16831574
auto_tag: false
1684-
tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64
1575+
tags: ${DRONE_BRANCH##release/v}-nightly-linux-arm64
16851576
repo: gitea/gitea
16861577
build_args:
16871578
- GOPROXY=https://goproxy.io
@@ -1703,7 +1594,7 @@ steps:
17031594
settings:
17041595
dockerfile: Dockerfile.rootless
17051596
auto_tag: false
1706-
tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64-rootless
1597+
tags: ${DRONE_BRANCH##release/v}-nightly-linux-arm64-rootless
17071598
repo: gitea/gitea
17081599
build_args:
17091600
- GOPROXY=https://goproxy.io
@@ -1818,57 +1709,3 @@ depends_on:
18181709
- docker-linux-arm64-release
18191710
- docker-linux-amd64-release-branch
18201711
- docker-linux-arm64-release-branch
1821-
1822-
---
1823-
kind: pipeline
1824-
type: docker
1825-
name: notifications
1826-
1827-
platform:
1828-
os: linux
1829-
arch: arm64
1830-
1831-
clone:
1832-
disable: true
1833-
1834-
trigger:
1835-
branch:
1836-
- main
1837-
- "release/*"
1838-
event:
1839-
- push
1840-
- tag
1841-
status:
1842-
- success
1843-
- failure
1844-
1845-
depends_on:
1846-
- testing-mysql
1847-
- testing-mysql8
1848-
- testing-mssql
1849-
- testing-pgsql
1850-
- testing-sqlite
1851-
- release-version
1852-
- release-latest
1853-
- docker-linux-amd64-release
1854-
- docker-linux-arm64-release
1855-
- docker-linux-amd64-release-version
1856-
- docker-linux-arm64-release-version
1857-
- docker-linux-amd64-release-candidate-version
1858-
- docker-linux-arm64-release-candidate-version
1859-
- docker-linux-amd64-release-branch
1860-
- docker-linux-arm64-release-branch
1861-
- docker-manifest
1862-
- docker-manifest-version
1863-
- docs
1864-
1865-
steps:
1866-
- name: discord
1867-
image: appleboy/drone-discord:1.2.4
1868-
pull: always
1869-
settings:
1870-
message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n"
1871-
webhook_id:
1872-
from_secret: discord_webhook_id
1873-
webhook_token:
1874-
from_secret: discord_webhook_token
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Compliance testing for documentation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "docs/**"
7+
- "*.md"
8+
9+
jobs:
10+
compliance-docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v3
15+
- name: setup node
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 18
19+
- name: install dependencies
20+
run: make deps-frontend
21+
- name: lint markdown
22+
run: make lint-md
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Docker build dry run
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
docker_dryrun:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: checkout
10+
uses: actions/checkout@v3
11+
- name: Set up Docker Buildx
12+
uses: docker/setup-buildx-action@v2
13+
- name: Build and push
14+
uses: docker/build-push-action@v4
15+
with:
16+
push: false
17+
tags: gitea/gitea:linux-amd64
18+
build-args: |
19+
GOPROXY=https://goproxy.io
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish documentation
2+
3+
on:
4+
push:
5+
paths:
6+
- "docs/**"
7+
branches:
8+
- main
9+
10+
jobs:
11+
compliance-docs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v3
16+
- name: setup go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '>=1.20.1'
20+
- name: build docs
21+
run: |
22+
cd docs
23+
make trans-copy clean build
24+
- name: publish to netlify
25+
uses: nwtgck/actions-netlify@v2.0
26+
with:
27+
production-branch: main
28+
publish-dir: docs/public/
29+
env:
30+
NETLIFY_SITE_ID: d2260bae-7861-4c02-8646-8f6440b12672
31+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

.lgtm

-3
This file was deleted.

CHANGELOG.md

+47
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,53 @@ 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.19.2](https://github.com/go-gitea/gitea/releases/tag/1.19.2) - 2023-04-26
8+
9+
* SECURITY
10+
* Require repo scope for PATs for private repos and basic authentication (#24362) (#24364)
11+
* Only delete secrets belonging to its owner (#24284) (#24286)
12+
* API
13+
* Fix typo in API route (#24310) (#24332)
14+
* Fix access token issue on some public endpoints (#24194) (#24259)
15+
* ENHANCEMENTS
16+
* Fix broken clone script on an empty archived repo (#24339) (#24348)
17+
* Fix Monaco IOS keyboard button (#24341) (#24347)
18+
* Don't set meta `theme-color` by default (#24340) (#24346)
19+
* Wrap too long push mirror addresses (#21120) (#24334)
20+
* Add --font-weight-bold and set previous bold to 601 (#24307) (#24331)
21+
* Unify nightly naming across binaries and docker images (#24116) (#24308)
22+
* Fix footer display (#24251) (#24269)
23+
* Fix label color, fix divider in dropdown (#24215) (#24244)
24+
* Vertical widths of containers removed (#24184) (#24211)
25+
* Use correct locale key for forks page (#24172) (#24175)
26+
* Sort repo topic labels by name (#24123) (#24153)
27+
* Highlight selected file in the PR file tree (#23947) (#24126)
28+
* BUGFIXES
29+
* Fix auth check bug (#24382) (#24387)
30+
* Add tags list for repos whose release setting is disabled (#23465) (#24369)
31+
* Fix wrong error info in RepoRefForAPI (#24344) (#24351)
32+
* Fix no edit/close/delete button in org repo project view page (#24349)
33+
* Respect the REGISTER_MANUAL_CONFIRM setting when registering via OIDC (#24035) (#24333)
34+
* Remove org users who belong to no teams (#24247) (#24313)
35+
* Fix bug when deleting wiki with no code write permission (#24274) (#24295)
36+
* Handle canceled workflow as a warning instead of a fail (#24282) (#24292)
37+
* Load reviewer for comments when dismissing a review (#24281) (#24288)
38+
* Show commit history for closed/merged PRs (#24238) (#24261)
39+
* Fix owner team access mode value in team_unit table (#24224)
40+
* Fix issue attachment handling (#24202) (#24221)
41+
* Fix incorrect CORS default values (#24206) (#24217)
42+
* Fix template error in pull request with deleted head repo (#24192) (#24216)
43+
* Don't list root repository on compare page if pulls not allowed (#24183) (#24210)
44+
* Fix calReleaseNumCommitsBehind (#24148) (#24197)
45+
* Fix Org edit page bugs: renaming detection, maxlength (#24161) (#24171)
46+
* Update redis library to support redis v7 (#24114) (#24156)
47+
* Use 1.18's aria role for dropdown menus (#24144) (#24155)
48+
* Fix 2-dot direct compare to use the right base commit (#24133) (#24150)
49+
* Fix incorrect server error content in RunnersList (#24118) (#24121)
50+
* Fix mismatch between hook events and github event types (#24048) (#24091)
51+
* BUILD
52+
* Support converting varchar to nvarchar for mssql database (#24105) (#24168)
53+
754
## [1.19.1](https://github.com/go-gitea/gitea/releases/tag/v1.19.1) - 2023-04-12
855

956
* BREAKING

CONTRIBUTING.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ See the [hacking instructions](https://docs.gitea.io/en-us/hacking-on-gitea/).
121121

122122
Changes to Gitea must be reviewed before they are accepted—no matter who
123123
makes the change, even if they are an owner or a maintainer. We use GitHub's
124-
pull request workflow to do that. And, we also use [LGTM](http://lgtm.co)
125-
to ensure every PR is reviewed by at least 2 maintainers.
124+
pull request workflow to do that. Every PR is reviewed by at least 2 maintainers.
126125

127126
Please try to make your pull request easy to review for us. And, please read
128127
the *[How to get faster PR reviews](https://github.com/kubernetes/community/blob/261cb0fd089b64002c91e8eddceebf032462ccd6/contributors/guide/pull-requests.md#best-practices-for-faster-reviews)* guide;

assets/go-licenses.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generate-go-licenses.go

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ func main() {
8282
panic(err)
8383
}
8484

85+
// Ensure file has a final newline
86+
if jsonBytes[len(jsonBytes)-1] != '\n' {
87+
jsonBytes = append(jsonBytes, '\n')
88+
}
89+
8590
err = os.WriteFile(out, jsonBytes, 0o644)
8691
if err != nil {
8792
panic(err)

0 commit comments

Comments
 (0)