Commit Graph

19141 Commits (8362a4155929007b8d02b63a2e657557edb08fb9)
 

Author SHA1 Message Date
Kemal Zebari 188e0ee8e4
Use `Project-URL` metadata field to get a PyPI package's homepage URL ()
Resolves .
wxiaoguang 68972a9947
Clean up legacy form CSS styles ()
GiteaBot a739c784d9 [skip ci] Updated translations via Crowdin
metiftikci 83b7e12d4c
add myself to maintainers ()
wxiaoguang e709cc76da
Make Gitea always use its internal config, ignore `/etc/gitconfig` ()
In history, Gitea could use the system config `/etc/gitconfig` because
some users said that "they might put certNonceSeed in it"

Actually, we shouldn't not use it, because it also causes conflicts
(there are already some fixes like )

To make the system clear, I think it's worth to introduce the breaking
change: add `GIT_CONFIG_NOSYSTEM=1` to all git commands.


## ⚠️ BREAKING ⚠️

 For most users, nothing need to do.

If you have made changes to `/etc/gitconfig` to affect Gitea's behavior,
you need to move these config options to Gitea's internal git config
file, it is usually in Gitea's `{AppDataPath}/home/.git` directory.
wxiaoguang 9ac536a904
Fix "stop time tracking button" on navbar ()
Fix 

By the way (something I was working on):

1. relax color/background-color for more markup elements
2. fix a command line sentence error
wxiaoguang 45973a100b
Fix bleve fuzziness search ()
Close 
wxiaoguang 9882917bce
Try to fix ACME directory problem ()
wxiaoguang 4f386e2c5e
Refactor env var related code ()
And add more comments
GiteaBot 2852708fdf [skip ci] Updated translations via Crowdin
JonRB 233b7959e0
unset XDG_HOME_CONFIG as gitea manages configuration locations ()
unset XDG_CONFIG_HOME early to enable gitea to manage git configuration.
simple error checking to satisfy the linting. Closes 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang c1167709ed
Refactor repo-new.ts ()
1. merge `repo-template.ts` into `repo-new.ts` (they are all for "/repo/create")
2. remove jquery
3. fix an anonying fomantic dropdown bug, see the comment of `onResponseKeepSelectedItem`
wxiaoguang 85c756e279
Refactor pull-request compare&create page ()
The old code is unnecessarily complex.
lonix1 d030cace1a
feat: link to nuget dependencies ()
Add links to dependencies and their versions, as done in nuget site.
Makes it easier to use.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang 2564c15cb0
Remove some unnecessary template helpers ()
DisableGitHooks and DisableImportLocal are only used when editing a
user, so only set them in `editUserCommon`
Steffen Schröter 57eb9d0b64
Inherit submodules from template repository content ()
Fix 

---------

Signed-off-by: Steffen Schröter <steffen@vexar.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
GiteaBot 92a2900a2d [skip ci] Updated translations via Crowdin
Bo-Yi Wu 6c89de494a
feat(action): issue change title notifications ()
- Add `IssueChangeTitle` method to handle issue title changes
- Add `notifyIssueChangeWithTitleOrContent` method to generalize
notification handling for issue title or content changes

action file as below:

```yaml
name: Semantic Pull Request

on:
  pull_request_target:
    types: [edited]
```

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao 20c7fba601
Use project's redirect url instead of composing url ()
Fix 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang a0853e2278
Fix unittest and repo create bug ()
1. `StatDir` was not right, fix the FIXME
2. Clarify the test cases for `IsUsableRepoName`
3. Fix regression bug in `repo-new.ts`

Fix 
wxiaoguang 58c092cfea
Fix locale type ()
Follow 
wxiaoguang e5c576e92b
Refactor maven package registry ()
Close 
Kerwin Bryant 54bd220520
Optimize the installation page ()
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Chai-Shi 0387195abb
[Feature] Private README.md for organization ()
Implemented 

---------

Co-authored-by: Ben Chang <ben_chang@htc.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang c09656e0e0
Make issue suggestion work for new PR page ()
Fix 
hiifong 4a254856b3
Add IntelliJ Gateway's .uuid to gitignore ()
Lunny Xiao a54cc05d2a
Fix issue comment number ()
hiifong a87168869a
Fix duplicate co-author in squashed merge commit messages ()
Fix: 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao fe32ffe181
Merge updatecommentattachment functions ()
Extract from 
Lunny Xiao d45456b1b5
Move SetMerged to service layer ()
No code change.
Extract from 
Lunny Xiao 8eecca3478
Remove aws go sdk package dependency ()
This PR removed the dependency of `github.com/aws/aws-sdk-go/aws`

Patially fix for 
cassio zareck 1e2c8eb494
Fix settings not being loaded at CLI ()
Closes 
The problem was that the default settings weren't being loaded

---------

Signed-off-by: cassiozareck <cassiomilczareck@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang dafadf0028
Refactor fixture loading for testing ()
To help binary size and testing performance
Lunny Xiao f4ccbd38dc
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache ()
The latest commit cache is currently used only for listing tree files.
However, a cold start may take longer than directly invoking the Git
command. This PR addresses the issue of slow response times when
accessing raw files, improving performance in such scenarios.

```log
gitea.log:105521:2024/12/23 08:22:18 ...eb/routing/logger.go:68:func1() [W] router: slow      GET /xxxx/xxxxxx/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxx/.editorconfig for 172.18.0.5:53252, elapsed 3526.8ms @ repo/download.go:117(repo.SingleDownload)
```
Lunny Xiao 344c89ea34
Fix bug automerge cannot be chosed when there is only 1 merge style ()
This is a quick bug fix. Even if there is only 1 merge style, the
dropdown menu will still be displayed to allow users to choose
auto-merge.

Fix 
techknowlogick 232867cff6
use `-s -w` ldflags for release artifacts ()
fix 
wxiaoguang cd1b5488a3
Refactor pagination ()
I am sure the simple approach should work, let's try it in 1.24

Follow  and 
wxiaoguang 1dbf0d7f08
Test webhook email ()
Close 
Henry Goodman a96776b3cb
Fix review code comment avatar alignment ()
Fixes 

Avatar should only have offset if the `Comment` has `Content` or
`Attachment` to align with the speech bubble.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
TheFox0x7 ff96873e3e
Fix templating in pull request comparison ()
Adds test for expected behavior

Closes: https://github.com/go-gitea/gitea/issues/33013
wxiaoguang 0ed160ffea
Refactor tests ()
1. fix incorrect tests, for example: BeanExists doesn't do assert and
shouldn't be used
2. remove unnecessary test functions
3. introduce DumpQueryResult to help to see the database rows during
test (at least I need it)

```
====== DumpQueryResult: SELECT * FROM action_runner_token ======
- # row[0]
  id: 1
  token: xeiWBL5kuTYxGPynHCqQdoeYmJAeG3IzGXCYTrDX
  owner_id: 0
...
```
GiteaBot e95b946f6d [skip ci] Updated translations via Crowdin
metiftikci 64bebc9402
always show assignees on right ()
### Before

![old_issue_list](https://github.com/user-attachments/assets/c7a6631d-9330-4e29-9e01-c1bcb2a0387f)

### After

![new_issue_list](https://github.com/user-attachments/assets/5a13c413-b58e-40bb-888b-9edfe3c94e0c)
metiftikci 94048f3035
fix toggle commit body button ui when latest commit message is long ()
#### Before


![before](https://github.com/user-attachments/assets/fe36bdb3-10e8-4fe7-9106-0897f49bedb3)

#### After


![after](https://github.com/user-attachments/assets/745bd164-5f25-41ca-b340-36cb695551db)


## Edit:

I found an issue on mobile view and changed the code as using flex gap


![small](https://github.com/user-attachments/assets/dd7c2093-6860-4800-a2bc-676a03e764c8)


![large](https://github.com/user-attachments/assets/5c933779-8281-4d48-9fd0-4d7b245bf4ac)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang a92f5057ae
Fix and/or comment some legacy CSS problems ()
wxiaoguang 3d3ece36d2
Refactor comment history and fix content edit ()
And fix a regression bug for comment content editing.

Now 11 "import jquery" files left
Lunny Xiao e69da2cd07
Fix bug on activities ()
A repository with no issue will display a random number on activities
page. This is caused by wrong usage of `And` and `Or`.

![9cdbbf81d50aa5d9bd16604e0dab5eb0](https://github.com/user-attachments/assets/828cebdc-bd35-4716-a58c-c1b43ddf8bf0)
wxiaoguang e435b1900a
Refactor arch route handlers ()
metiftikci 254314be5f
fix scoped label ui when contains emoji ()
### Before

![old_label](https://github.com/user-attachments/assets/2211f711-613a-4ed4-90fd-8ff6ab0700f5)

### After

![new_label](https://github.com/user-attachments/assets/ecbc89da-7f77-44d0-8ce9-ba51b67421e5)
GiteaBot 14ed553fae [skip ci] Updated translations via Crowdin