Commit Graph

19014 Commits (8f433132e1a08ebb85e216db7d788ab795baadf5)
 

Author SHA1 Message Date
silverwind 8f433132e1
Update stylelint config ()
- Inherit stylelint config from
[`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended),
removed all stylelint core rule options that were either already in
their config or disabled.
- `no-descending-specificity` diverges from their config, seems to much
work currently.
- Tweaked a few rules.
- Added
[`stylelint-define-config`](https://github.com/stylelint-types/stylelint-define-config)
so that typescript can validate the config.
GiteaBot 121e4c9624 [skip ci] Updated translations via Crowdin
silverwind 8cd10f7f3b
Updates for poetry 2.0 ()
- Remove removed
[`no-setuptools`](https://github.com/python-poetry/poetry/pull/9331)
option, it's the default now
- Ran `make update-py` under poetry 2.0.1 which updated the lockfile

Also see https://github.com/python-poetry/poetry/releases/tag/2.0.0
wxiaoguang 182e3896bf
Fix flex width ()
Fix 
Lunny Xiao 77d14fb6d3
Fix system admin cannot fork or get private fork with API ()
Fix 
Lunny Xiao dcd3014567
Add pubdate for repository rss and add some tests ()
Fix 
TheFox0x7 6ca91f555a
User facing messages for AGit errors ()
Adds user facing messages to errors when submitting agit pull request
Tries to highlight the returned error more and fixes agit suggestion to
create PR on first submission.

Closes: https://github.com/go-gitea/gitea/issues/32965

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Wesley van Tilburg c79adf00b8
Add basic auth support to rss/atom feeds ()
Allows RSS readers to access private feeds using their basic auth
capabilities. Not all clients feature the ability to add cookies or
headers.

fixes  

Tested with miniflux

no credentials:

![image](https://github.com/user-attachments/assets/8c3369f2-1cf6-4ce3-ac6e-84447e454928)


basic auth entered:

![image](https://github.com/user-attachments/assets/c93ff22c-1429-4a80-898f-91d9f35c7c61)

![image](https://github.com/user-attachments/assets/60d83afd-9dde-4973-a440-ff8138799e87)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
hiifong 26b51aa032
Optimize makefile help information generation ()
Get help information from the target's comments.

![image](https://github.com/user-attachments/assets/ee259545-99b7-4163-a8da-011159f8301b)
wxiaoguang 517a367abe
Use ProtonMail/go-crypto to replace keybase/go-crypto ()
Fix 

The keybase/go-crypto is no longer maintained and it generates malformed
signatures, ProtonMail/go-crypto is the actively maintained fork.
GiteaBot fae69bc6d4 [skip ci] Updated translations via Crowdin
Lunny Xiao 3e7ec826d3
Add missed auto merge feed message on dashboard ()
silverwind 9875f9b9b8
Clone button enhancements ()
- Add box-shadow to default tippy theme
- Make colors for tabs match the ones from `.ui.tabular.menu`
- Remove tippy arrow and slightly offset tooltip closer to the button
- Fix setting of `aria-haspopup` when default role is used with tippy

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang e663c4a7f0
Fix issue suggestion bug ()
Fix 
GiteaBot 2cc65e356e [skip ci] Updated translations via Crowdin
silverwind 078ef6db89
Update tool dependencies ()
Update all tool dependencies to latest versions.
wxiaoguang 2c1ff8701a
Refactor context flash msg and global variables ()
1. add `GetSiteCookieFlashMessage` to help to parse flash message
2. clarify `handleRepoHomeFeed` logic
3. remove unnecessary global variables, use `sync.OnceValue` instead
4. add some tests for `IsUsableUsername` and `IsUsableRepoName`
wxiaoguang 6a516a0d14
Do not show unnecessary commit sign lock icon ()
Fix 
wxiaoguang 7da8a01d39
Fix js error when edit issue ()
wxiaoguang 06ff9b6256
Do not access GitRepo when a repo is being created ()
silverwind 642e8c1122
Repo homepage styling tweaks ()
Reduce it to a value that results in `.repo-home-sidebar-top` and
`.repo-home-sidebar-bottom` having 240px content width, the same as
GitHub.

Before:
<img width="1333" alt="Screenshot 2025-01-15 at 18 28 34"
src="https://github.com/user-attachments/assets/cf0fa21b-87be-40e3-a6cd-26d146bce9cc"
/>

After:
<img width="1330" alt="Screenshot 2025-01-15 at 18 28 27"
src="https://github.com/user-attachments/assets/28acd837-10f4-4176-b8a0-510cd28c8b8d"
/>
Typed SIGTERM 9e028d8d57
Fix comment header padding ()
GiteaBot 3e1b63f75b [skip ci] Updated translations via Crowdin
Lunny Xiao e94f37f95e
Refactor webhook events ()
Extract from 

This PR uses a map instead of a struct to store webhook event
information. It removes many duplicated functions and makes the logic
clearer.
yp05327 594b8350b1
Add missing POPULATE_SQUASH_COMMENT_WITH_COMMIT_MESSAGES in app.example.ini ()
Ref:
https://docs.gitea.com/next/administration/config-cheat-sheet?_highlight=populate_squash_comment_with_commit_messages#repository---pull-request-repositorypull-request
GiteaBot 340d9ec42d [skip ci] Updated translations via Crowdin
yp05327 a0b3d9add0
Support disable passkey auth ()
Fix 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
silverwind d64c849d16
Update JS dependencies ()
Fixes: https://github.com/go-gitea/gitea/security/dependabot/88
Fixes: https://github.com/go-gitea/gitea/security/dependabot/87

Tested Katex, works as expected.
silverwind c7f4ca2653
Enable Typescript `noImplicitAny` ()
Enable `noImplicitAny` and fix all issues.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang 6fe4d1c038
Remove duplicate "ResponseWriter.Status" method ()
silverwind abe743df79
Fix code button alignment ()
Fixes: https://github.com/go-gitea/gitea/issues/33344

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
GiteaBot 3682231f17 [skip ci] Updated translations via Crowdin
wxiaoguang 7069369e03
Support performance trace ()
1. Add a OpenTelemetry-like shim-layer to collect traces
2. Add a simple builtin trace collector and exporter, end users could
download the diagnosis report to get the traces.

This PR's design is quite lightweight, no hard-dependency, and it is
easy to improve or remove. We can try it on gitea.com first to see
whether it works well, and fine tune the details.

---------

Co-authored-by: silverwind <me@silverwind.io>
wxiaoguang 2cb3946496
Make issue suggestion work for all editors ()
And do not handle special keys when the text-expander popup exists
wxiaoguang 46d1e91aed
Fix issue count ()
Fix 
GiteaBot 2e42e96ce2 [skip ci] Updated translations via Crowdin
wxiaoguang 6cc1067884
Fix incorrect ref commit ID usage ()
After the RefName refactoring, the `ctx.Repo.CommitID` is only set when
there is a `RepoRefByType` middleware.

Many handlers do not use that middleware and they only use "default
branch"
wxiaoguang 39de2955fd
Improve sync fork behavior ()
Fix 

Suppose there is a `branch-a` in fork repo:

1. if `branch-a` exists in base repo: try to sync `base:branch-a` to `fork:branch-a`
2. if `branch-a` doesn't exist in base repo: try to sync `base:main` to `fork:branch-a`
wxiaoguang 6073e2f1bb
Refactor response writer & access logger ()
And add comments & tests
GiteaBot 13dbd260b7 [skip ci] Updated licenses and gitignores
Michael Vetter 076d122f34
Fix typo in documentation of GetBranchNames() ()
CrimsonEdgeHope 1928918c35
Fix Account linking page ()
Fix password form missing whilst linking account even with
`ENABLE_PASSWORD_SIGNIN_FORM = true`.

Remove redundant empty box in account linking sign up page when
`LinkAccountMode` is true.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
hiifong b7614e2d2f
Fix parentCommit invalid memory address or nil pointer dereference. ()
When the parent Commit does not exist on gitea, an error will be
reported when opening the Commit details page: invalid memory address or
nil pointer dereference.

![image](https://github.com/user-attachments/assets/4c2a9802-935f-41e9-b5b9-a4f0d745f709)

![image](https://github.com/user-attachments/assets/7b0bc15e-7f5f-4d58-8d24-fee667a799fa)
Vladimir Sysoev dc2308a959
Make tracked time representation display as hours ()
Estimated time represented in hours it might be convenient to
have tracked time represented in the same way to be compared and
managed.

---------

Co-authored-by: Sysoev, Vladimir <i@vsysoev.ru>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
GiteaBot f250ee6360 [skip ci] Updated translations via Crowdin
GiteaBot fffc8550ab [skip ci] Updated translations via Crowdin
Chai-Shi 55e0756c68
Fix push message behavior ()
Fixes  by the logic from pr 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
6543 1342d48433
Add golang back to nix dev environment and pin v1.23 ()
wxiaoguang 3b839f8dc0
Trivial fixes ()
1. the error check was added for go-git, it was caused by the empty `.keep` file in the test fixtures.
2. use `PostFormValue` instead of `PostForm.Get` (`Get` needs to parse the form ahead)
3. fix incorrect container text (it should show "Images" in the header but not "OS/Arch")
4. align maven xml
5. fix closed PR color&icon
GiteaBot 7582eb0419 [skip ci] Updated translations via Crowdin