Skip to content

Commit d9f7774

Browse files
authored
Merge branch 'main' into system-webhooks-api
2 parents f2f1bbf + 70fc47a commit d9f7774

File tree

329 files changed

+6048
-4428
lines changed

Some content is hidden

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

329 files changed

+6048
-4428
lines changed

.drone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,11 @@ steps:
756756

757757
# TODO: We should probably build all dependencies into a test image
758758
- name: test-e2e
759-
image: mcr.microsoft.com/playwright:v1.32.1-focal
759+
image: mcr.microsoft.com/playwright:v1.32.3-focal
760760
commands:
761-
- curl -sLO https://go.dev/dl/go1.20.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
761+
- apt-get -qq update && apt-get -qqy install jq build-essential
762+
- curl -fsSL "https://go.dev/dl/$(curl -s 'https://go.dev/dl/?mode=json' | jq -r '.[].version' | sort -Vr | head -1).linux-amd64.tar.gz" | tar -xz -C /usr/local
762763
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
763-
- apt-get -qq update && apt-get -qqy install build-essential
764764
- ./build/test-env-prepare.sh
765765
- su gitea bash -c "export PATH=$PATH:/usr/local/go/bin && timeout -s ABRT 40m make test-e2e-sqlite"
766766
environment:

.eslintrc.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ plugins:
1212
- eslint-plugin-unicorn
1313
- eslint-plugin-import
1414
- eslint-plugin-jquery
15+
- eslint-plugin-no-jquery
1516
- eslint-plugin-sonarjs
1617
- eslint-plugin-custom-elements
1718

@@ -65,7 +66,7 @@ rules:
6566
curly: [0]
6667
custom-elements/expose-class-on-global: [0]
6768
custom-elements/extends-correct-class: [2]
68-
custom-elements/file-name-matches-element: [0]
69+
custom-elements/file-name-matches-element: [2]
6970
custom-elements/no-constructor: [2]
7071
custom-elements/no-customized-built-in-elements: [2]
7172
custom-elements/no-dom-traversal-in-attributechangedcallback: [2]
@@ -192,6 +193,7 @@ rules:
192193
jquery/no-val: [0]
193194
jquery/no-when: [2]
194195
jquery/no-wrap: [2]
196+
no-jquery/no-event-shorthand: [2]
195197
key-spacing: [2]
196198
keyword-spacing: [2]
197199
line-comment-position: [0]
@@ -500,7 +502,7 @@ rules:
500502
unicorn/prefer-default-parameters: [0]
501503
unicorn/prefer-event-key: [2]
502504
unicorn/prefer-event-target: [2]
503-
unicorn/prefer-export-from: [2]
505+
unicorn/prefer-export-from: [2, {ignoreUsedVariables: true}]
504506
unicorn/prefer-includes: [2]
505507
unicorn/prefer-json-parse-buffer: [0]
506508
unicorn/prefer-logical-operator-over-ternary: [2]

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
* text=auto eol=lf
22
*.tmpl linguist-language=Handlebars
33
/assets/*.json linguist-generated
4+
/public/img/svg/*.svg linguist-generated
45
/public/vendor/** -text -eol linguist-vendored
56
/vendor/** -text -eol linguist-vendored
67
/web_src/fomantic/build/** linguist-generated

.golangci.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -111,67 +111,16 @@ issues:
111111
- linters:
112112
- gocritic
113113
text: "`ID' should not be capitalized"
114-
- path: modules/templates/helper.go
115-
linters:
116-
- gocritic
117114
- linters:
118115
- unused
119116
- deadcode
120117
text: "swagger"
121-
- path: contrib/pr/checkout.go
122-
linters:
123-
- errcheck
124-
- path: models/issue.go
125-
linters:
126-
- errcheck
127-
- path: models/migrations/
128-
linters:
129-
- errcheck
130-
- path: modules/log/
131-
linters:
132-
- errcheck
133-
- path: routers/api/v1/repo/issue_subscription.go
134-
linters:
135-
- dupl
136-
- path: routers/repo/view.go
137-
linters:
138-
- dupl
139-
- path: models/migrations/
140-
linters:
141-
- unused
142118
- linters:
143119
- staticcheck
144120
text: "argument x is overwritten before first use"
145-
- path: modules/httplib/httplib.go
146-
linters:
147-
- staticcheck
148-
# Enabling this would require refactoring the methods and how they are called.
149-
- path: models/issue_comment_list.go
150-
linters:
151-
- dupl
152-
- path: models/update.go
153-
linters:
154-
- unused
155-
- path: cmd/dump.go
156-
linters:
157-
- dupl
158-
- path: services/webhook/webhook.go
159-
linters:
160-
- structcheck
161121
- text: "commentFormatting: put a space between `//` and comment text"
162122
linters:
163123
- gocritic
164124
- text: "exitAfterDefer:"
165125
linters:
166126
- gocritic
167-
- path: modules/graceful/manager_windows.go
168-
linters:
169-
- staticcheck
170-
text: "svc.IsAnInteractiveSession is deprecated: Use IsWindowsService instead."
171-
- path: models/user/openid.go
172-
linters:
173-
- golint
174-
- path: models/user/badge.go
175-
linters:
176-
- revive
177-
text: "exported: type name will be used as user.UserBadge by other packages, and that stutters; consider calling this Badge"

CHANGELOG.md

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,96 @@ 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.0](https://github.com/go-gitea/gitea/releases/tag/1.19.0) - 2023-03-19
7+
## [1.19.1](https://github.com/go-gitea/gitea/releases/tag/v1.19.1) - 2023-04-12
8+
9+
* BREAKING
10+
* Rename actions unit to `repo.actions` and add docs for it (#23733) (#23881)
11+
* ENHANCEMENTS
12+
* Add card type to org/user level project on creation, edit and view (#24043) (#24066)
13+
* Refactor commit status for Actions jobs (#23786) (#24060)
14+
* Show errors for KaTeX and mermaid on the preview tab (#24009) (#24019)
15+
* Show protected branch rule names again (#23907) (#24018)
16+
* Adjust sticky PR header to cover background (#23956) (#23999)
17+
* Discolor pull request tab labels (#23950) (#23987)
18+
* Treat PRs with agit flow as fork PRs when triggering actions. (#23884) (#23967)
19+
* Left-align review comments (#23937)
20+
* Fix image border-radius (#23886) (#23930)
21+
* Scroll collapsed file into view (#23702) (#23929)
22+
* Fix code view (diff) broken layout (#23096) (#23918)
23+
* Org pages style fixes (#23901) (#23914)
24+
* Fix user profile description rendering (#23882) (#23902)
25+
* Fix review box viewport overflow issue (#23800) (#23898)
26+
* Prefill input values in OAuth settings as intended (#23829) (#23871)
27+
* CSS color tweaks (#23828) (#23842)
28+
* Fix incorrect visibility dropdown list in add/edit user page (#23804) (#23833)
29+
* Add CSS rules for basic colored labels (#23774) (#23777)
30+
* Add creation time in tag list page (#23693) (#23773)
31+
* Fix br display for packages curls (#23737) (#23764)
32+
* Fix issue due date edit toggle bug (#23723) (#23758)
33+
* Improve commit graph page UI alignment (#23751) (#23754)
34+
* Use GitHub Actions compatible globbing for `branches`, `tag`, `path` filter (#22804) (#23740)
35+
* Redirect to project again after editing it (#23326) (#23739)
36+
* Remove row clicking from notification table (#22695) (#23706)
37+
* Remove conflicting CSS rules on notifications, improve notifications table (#23565) (#23621)
38+
* Fix diff tree height and adjust target file style (#23616)
39+
* BUGFIXES
40+
* Improve error logging for LFS (#24072) (#24082)
41+
* Fix custom mailer template on Windows platform (#24081)
42+
* Update the value of `diffEnd` when clicking the `Show More` button in the DiffFileTree (#24069) (#24078)
43+
* Make label templates have consistent behavior and priority (#23749)
44+
* Fix accidental overwriting of LDAP team memberships (#24050) (#24065)
45+
* Fix branch protection priority (#24045) (#24061)
46+
* Use actions job link as commit status URL instead of run link (#24023) (#24032)
47+
* Add actions support to package auth verification (#23729) (#24028)
48+
* Fix protected branch for API (#24013) (#24027)
49+
* Do not escape space between PyPI repository URL and package name… (#23981) (#24008)
50+
* Fix redirect bug when creating issue from a project (#23971) (#23997)
51+
* Set `ref` to fully-formed of the tag when trigger event is `release` (#23944) (#23989)
52+
* Use Get/Set instead of Rename when regenerating session ID (#23975) (#23983)
53+
* Ensure RSS icon is present on all repo tabs (#23904) (#23973)
54+
* Remove `Repository.getFilesChanged` to fix Actions `paths` and `paths-ignore` filter (#23920) (#23969)
55+
* Delete deleted release attachments immediately from storage (#23913) (#23958)
56+
* Use ghost user if package creator does not exist (#23822) (#23915)
57+
* User/Org Feed render description as per web (#23887) (#23906)
58+
* Fix `cases.Title` crash for concurrency (#23885) (#23903)
59+
* Convert .Source.SkipVerify to $cfg.SkipVerify (#23839) (#23899)
60+
* Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874) (#23878)
61+
* Fix JS error when changing PR's target branch (#23862) (#23864)
62+
* Fix 500 error if there is a name conflict when editing authentication source (#23832) (#23852)
63+
* Fix closed PR also triggers Webhooks and actions (#23782) (#23834)
64+
* Fix checks for `needs` in Actions (#23789) (#23831)
65+
* Fix "Updating branch by merge" bug in "update_branch_by_merge.tmpl" (#23790) (#23825)
66+
* Fix cancel button in the page of project edit not work (#23655) (#23813)
67+
* Don't apply the group filter when listing LDAP group membership if it is empty (#23745) (#23788)
68+
* Fix profile page email display, respect settings (#23747) (#23756)
69+
* Fix project card preview select and template select (#23684) (#23731)
70+
* Check LFS/Packages settings in dump and doctor command (#23631) (#23730)
71+
* Add git dashes separator to some "log" and "diff" commands (#23606) (#23720)
72+
* Create commit status when event is `pull_request_sync` (#23683) (#23691)
73+
* Fix incorrect `HookEventType` of pull request review comments (#23650) (#23678)
74+
* Fix incorrect `show-modal` and `show-panel` class (#23660) (#23663)
75+
* Improve workflow event triggers (#23613) (#23648)
76+
* Introduce path Clean/Join helper functions, partially backport&refactor (#23495) (#23607)
77+
* Fix pagination on `/notifications/watching` (#23564) (#23603)
78+
* Fix submodule is nil panic (#23588) (#23601)
79+
* Polyfill the window.customElements (#23592) (#23595)
80+
* Avoid too long names for actions (#23162) (#23190)
81+
* TRANSLATION
82+
* Backport locales (with manual fixes) (#23808, #23634, #24083)
83+
* BUILD
84+
* Hardcode the path to docker images (#23955) (#23968)
85+
* DOCS
86+
* Update documentation to explain which projects allow Gitea to host static pages (#23993) (#24058)
87+
* Merge `push to create`, `open PR from push`, and `push options` docs articles into one (#23744) (#23959)
88+
* Fix code blocks in the cheat sheet (#23664) (#23669)
89+
* MISC
90+
* Do not crash when parsing an invalid workflow file (#23972) (#23976)
91+
* Remove assertion debug code for show/hide refactoring (#23576) (#23868)
92+
* Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) (#23791)
93+
* Make minio package support legacy MD5 checksum (#23768) (#23770)
94+
* Improve template error reporting (#23396) (#23600)
95+
96+
## [1.19.0](https://github.com/go-gitea/gitea/releases/tag/v1.19.0) - 2023-03-19
897

998
* BREAKING
1099
* Add loading yaml label template files (#22976) (#23232)

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ IMPORT := code.gitea.io/gitea
2020

2121
GO ?= go
2222
SHASUM ?= shasum -a 256
23-
HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
23+
HAS_GO := $(shell hash $(GO) > /dev/null 2>&1 && echo yes)
2424
COMMA := ,
2525

2626
XGO_VERSION := go-1.20.x
@@ -41,7 +41,7 @@ DOCKER_IMAGE ?= gitea/gitea
4141
DOCKER_TAG ?= latest
4242
DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG)
4343

44-
ifeq ($(HAS_GO), GO)
44+
ifeq ($(HAS_GO), yes)
4545
GOPATH ?= $(shell $(GO) env GOPATH)
4646
export PATH := $(GOPATH)/bin:$(PATH)
4747

0 commit comments

Comments
 (0)