Jason Song
fdd3444c52
fix: add missing ctx
2022-12-05 14:46:34 +08:00
Jason Song
bd1af5b7f8
Merge branch 'main' into feature/bots
2022-12-05 14:31:00 +08:00
zeripath
a08584ee36
Ensure that Chinese punctuation is not ambiguous when locale is Chinese ( #22019 )
...
Although there are per-locale fallbacks for ambiguity the locale names
for Chinese do not quite match our locales. This PR simply maps zh-CN on
to zh-hans and other zh variants on to zh-hant.
Ref #20999
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-12-04 17:57:30 +00:00
zeripath
ea86c2b56a
Use GhostUser if needed for TrackedTimes ( #22021 )
...
When getting tracked times out of the db and loading their attributes
handle not exist errors in a nicer way. (Also prevent an NPE.)
Fix #22006
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-12-04 17:48:18 +00:00
Michael Kriese
84d2a820e5
Add dumb-init to rootless docker ( #21775 )
...
Add dumb-init as process reaper to the rootless image to reap defunct git processes.
2022-12-04 11:12:06 +00:00
6543
46485848fa
On tag/branch-exist check, dont panic if repo is nil ( #21787 )
...
fix a panic found in gitea logs
2022-12-04 10:28:57 +00:00
Lunny Xiao
36cbaec54c
Fix ListBranches to handle empty case ( #21921 )
...
Fix #21910
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2022-12-04 08:57:17 +00:00
Percy Ma
9eb9cf5153
fix(web): reduce page jitter on browsers that support overlay scrollbar ( #21850 )
...
Reduce jitter caused by the presence or absence of scrollbars in page
switching
---
Ref [scrollbar-gutter |
MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter )
https://user-images.githubusercontent.com/45708948/165972251-7d5a5017-f76d-4ba2-9106-a224b3ee521f.mp4
2022-12-04 08:56:10 +00:00
zeripath
d084ce306a
[skip ci] Updated licenses and gitignores
2022-12-04 00:19:34 +00:00
zeripath
0e46499258
Do not emit ambiguous character warning on rendered pages ( #22016 )
...
The real sensitivity of ambiguous characters is in source code -
therefore warning about them in rendered pages causes too many warnings.
Therefore simply remove the warning on rendered pages.
The escape button will remain available and it is present on the view
source page.
Fix #20999
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-12-03 23:47:00 +08:00
Xinyu Zhou
181f4bfdb1
docs: add Edit this page
( #21981 )
...
Update theme to support `Edit this page`:
https://gitea.com/gitea/theme/pulls/116
Screenshot:

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-03 19:51:53 +08:00
Lunny Xiao
0a7d3ff786
refactor some functions to support ctx as first parameter ( #21878 )
...
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-03 10:48:26 +08:00
Chongyi Zheng
8698458f48
Remove deprecated packages & staticcheck fixes ( #22012 )
...
`ioutil` is deprecated and should use `io` instead
2022-12-02 17:06:23 -05:00
xtexChooser
21bcb92926
Add pnpm to packages/overview ( #22008 )
...
[`pnpm`](https://pnpm.io/ ) is a "fast, disk space efficient" node
package manager.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-02 11:23:47 -05:00
flynnnnnnnnnn
350bc83d00
Update to Alpine 3.17 ( #21904 )
...
This pull request is for updating the base docker images to build with
the latest version of Alpine.
2022-12-02 11:23:26 -05:00
Jason Song
b0d6c7b86e
chore: use SPDX-License-Identifier
2022-12-02 22:25:31 +08:00
Jason Song
d4842ac45b
chore: resolve conflict
2022-12-02 22:23:18 +08:00
Jason Song
76869e4b76
Merge branch 'main' into feature/bots
2022-12-02 22:17:49 +08:00
Jason Song
f59a74852b
Update gitea-vet to check FSFE REUSE ( #22004 )
...
Related to:
- #21840
- https://gitea.com/gitea/gitea-vet/pulls/21
What it looks like when it's working:
https://drone.gitea.io/go-gitea/gitea/64040/1/5
All available SPDX license identifiers: [SPDX License
List](https://spdx.org/licenses/ ).
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-02 22:14:57 +08:00
Jason Song
3dc5547775
Merge branch 'main' into feature/bots
2022-12-02 21:05:31 +08:00
silverwind
d64063277d
Multiple improvements for comment edit diff ( #21990 )
...
- Use explicit avatar size so when JS copies the HTML, the size gets
copied with it
- Replace icon font use with SVG
- Improve styling and diff rendering
- Sort lists in `svg.js`
Fixes: https://github.com/go-gitea/gitea/issues/21924
<img width="933" alt="Screenshot 2022-11-30 at 17 52 17"
src="https://user-images.githubusercontent.com/115237/204859608-f322a8f8-7b91-45e4-87c0-82694e574115.png ">
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-12-02 11:42:34 +02:00
Jason Song
b9ab9b21c6
Merge branch 'go-gitea:main' into feature/bots
2022-12-02 13:28:14 +08:00
Lunny Xiao
df676a47d0
Remove session in api tests ( #21984 )
...
It's no meaning to request an API route with session.
2022-12-01 22:39:42 -05:00
Mark Ormesher
665d02efaf
Remove duplicate "Actions" label in mobile view ( #21974 )
...
Closes #21973 .
The "Actions" button on the commit view page is labelled twice in mobile
view. No other buttons on the page have a `mobile-only` extra label, so
this PR removes it.
Before:

After:

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-01 22:39:19 -05:00
Jason Song
f869c988a5
chore: resolve conflict
2022-12-02 11:17:41 +08:00
Lunny Xiao
f7ade6de7c
Fix generate index failure possibility on postgres ( #21998 )
...
@wxiaoguang Please review
Co-authored-by: silverwind <me@silverwind.io>
2022-12-02 11:15:36 +08:00
Jason Song
9bd773eb85
Merge branch 'main' into feature/bots
2022-12-02 09:42:42 +08:00
zeripath
64973cf18f
Use path not filepath in template filenames ( #21993 )
...
Paths in git are always separated by `/` not `\` - therefore we should
`path` and not `filepath`
Fix #21987
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-02 07:56:51 +08:00
silverwind
f0bd219a5e
Update chroma to v2.4.0 ( #22000 )
...
Did a few cursory tests, seems to work well.
2022-12-01 16:44:38 -05:00
Jason Song
f9cbf5a1bc
Util type to parse ref name ( #21969 )
...
Provide a new type to make it easier to parse a ref name.
Actually, it's picked up from #21937 , to make the origin PR lighter.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-12-01 19:56:04 +08:00
Jason Song
4e5d4d0073
Skip initing LFS storage if disabled ( #21996 )
...
A complement to #21985 .
I overlooked it because the name of the switch is `StartServer`, not
`Enabled`. I believe the weird name is a legacy, but renaming is out of
scope.
2022-12-01 11:02:04 +02:00
Jason Song
d2a4c10bc7
chore: code lint
2022-12-01 15:39:28 +08:00
Jason Song
b2745bff43
feat: support disable bots completely
2022-12-01 15:27:28 +08:00
Jason Song
ab69fdc6fe
feat: more notifications
2022-12-01 14:13:22 +08:00
Jason Song
a29babebd0
fix: skip initing bots storage if disabled
2022-12-01 13:42:48 +08:00
Jason Song
c5c9b4ae57
Merge branch 'main' into feature/bots
2022-12-01 13:39:47 +08:00
Lunny Xiao
b2c4870481
Fix parallel creating commit status bug with tests ( #21911 )
...
This PR is a follow up of #21469
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-01 00:41:49 +08:00
Jason Song
67881ae99a
Skip initing disabled storages ( #21985 )
...
If `Attachment` or `Packages` are disabled, we don't have to init the
storages for them.
2022-11-30 21:39:02 +08:00
Jason Song
847d65d724
Merge branch 'main' into feature/bots
2022-11-30 18:25:36 +08:00
Jason Song
4487f04b14
feat: new way to notify
2022-11-30 18:24:47 +08:00
花墨
7020c4afb7
Fix leaving organization bug on user settings -> orgs ( #21983 )
...
Fix #21772
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-11-30 17:00:00 +08:00
Jason Song
9808d084ba
fix: remove useless codes
2022-11-30 16:07:00 +08:00
Jason Song
26ac9ab57d
Merge branch 'go-gitea:main' into feature/bots
2022-11-30 16:05:24 +08:00
luzpaz
fdfd77f478
Fix typos ( #21979 )
...
Found via codespell
2022-11-29 18:41:29 -06:00
Jason Song
3682fc3883
Merge branch 'main' into feature/bots
2022-11-29 18:50:02 +08:00
Jason Song
3793d55eca
fix: commit status
2022-11-29 18:48:00 +08:00
Jason Song
564937a657
feat: bots_service.CreateCommitStatus
2022-11-29 18:21:27 +08:00
Jason Song
8f2efdaf60
chore: add dbfs to migration
2022-11-29 17:19:26 +08:00
Jason Song
c1fce2cf7d
feat: remove bots resources after deleting repo
2022-11-29 16:25:58 +08:00
Saswat Padhi
715cf46dc4
Normalize AppURL
according to RFC 3986 ( #21950 )
...
Fixes #21865 .
Scheme-based normalization ([RFC 3986, section
6.2.3](https://www.rfc-editor.org/rfc/rfc3986#section-6.2.3 )) was
already implemented, but only for `defaultAppURL`.
This PR implements the same for `AppURL`.
Signed-off-by: Saswat Padhi <saswatpadhi@protonmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-29 15:30:47 +08:00