0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-26 01:49:12 +01:00

18924 Commits

Author SHA1 Message Date
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>
2024-12-31 12:08:36 +00:00
Lunny Xiao
20c7fba601
Use project's redirect url instead of composing url ()
Fix 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-31 19:19:53 +08:00
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 
2024-12-31 18:45:05 +08:00
wxiaoguang
58c092cfea
Fix locale type ()
Follow 
2024-12-31 06:37:37 +00:00
wxiaoguang
e5c576e92b
Refactor maven package registry ()
Close 
2024-12-31 05:30:52 +00:00
Kerwin Bryant
54bd220520
Optimize the installation page ()
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-31 04:49:26 +00:00
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>
2024-12-31 04:22:09 +00:00
wxiaoguang
c09656e0e0
Make issue suggestion work for new PR page ()
Fix 
2024-12-31 03:50:55 +00:00
hiifong
4a254856b3
Add IntelliJ Gateway's .uuid to gitignore () 2024-12-30 21:42:29 -05:00
Lunny Xiao
a54cc05d2a
Fix issue comment number () 2024-12-30 14:35:46 -08:00
hiifong
a87168869a
Fix duplicate co-author in squashed merge commit messages ()
Fix: 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-30 19:03:21 +00:00
Lunny Xiao
fe32ffe181
Merge updatecommentattachment functions ()
Extract from 
2024-12-30 18:21:57 +00:00
Lunny Xiao
d45456b1b5
Move SetMerged to service layer ()
No code change.
Extract from 
2024-12-30 07:04:03 +00:00
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 
2024-12-30 06:30:28 +00:00
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>
2024-12-30 05:54:20 +00:00
wxiaoguang
dafadf0028
Refactor fixture loading for testing ()
To help binary size and testing performance
2024-12-30 04:06:57 +00:00
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)
```
2024-12-30 03:30:01 +00:00
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 
2024-12-30 03:04:22 +00:00
techknowlogick
232867cff6
use -s -w ldflags for release artifacts ()
fix 
2024-12-30 02:37:59 +00:00
wxiaoguang
cd1b5488a3
Refactor pagination ()
I am sure the simple approach should work, let's try it in 1.24

Follow  and 
2024-12-30 01:57:38 +00:00
wxiaoguang
1dbf0d7f08
Test webhook email ()
Close 
2024-12-30 01:25:49 +08:00
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>
2024-12-29 11:04:13 +00:00
TheFox0x7
ff96873e3e
Fix templating in pull request comparison ()
Adds test for expected behavior

Closes: https://github.com/go-gitea/gitea/issues/33013
2024-12-29 01:32:19 +00:00
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
...
```
2024-12-29 01:05:56 +00:00
GiteaBot
e95b946f6d [skip ci] Updated translations via Crowdin 2024-12-29 00:36:47 +00:00
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)
2024-12-29 00:30:06 +00:00
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>
2024-12-29 08:04:56 +08:00
wxiaoguang
a92f5057ae
Fix and/or comment some legacy CSS problems () 2024-12-28 11:51:38 +00:00
wxiaoguang
3d3ece36d2
Refactor comment history and fix content edit ()
And fix a regression bug for comment content editing.

Now 11 "import jquery" files left
2024-12-28 19:26:16 +08:00
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)
2024-12-28 04:04:07 +00:00
wxiaoguang
e435b1900a
Refactor arch route handlers () 2024-12-28 03:31:46 +00:00
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)
2024-12-28 00:58:19 +00:00
GiteaBot
14ed553fae [skip ci] Updated translations via Crowdin 2024-12-28 00:30:57 +00:00
Blender Defender
079a1ffe8f
De-emphasize signed commits ()
The new code structure is easier to make more improvements or
refactor, for example: change the colors to de-emphasize more, or design
some new layouts.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-28 04:18:30 +08:00
wxiaoguang
ea198f9ea8
Fix eslint ()
Fix  
Related 

* eslint-plugin-github 5.1.x doesn't work well with eslint8
* no-undef is still needed
2024-12-27 19:34:39 +00:00
a1012112796
a7b2707be9
Fix Agit pull request permission check ()
user with read permission should also can create agit flow pull request.
looks this logic was broken in
https://github.com/go-gitea/gitea/pull/31033 this pull request try fix
it and add test code.

---------

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-27 18:17:01 +00:00
Zettat123
2d1a171dc7
Support for email addresses containing uppercase characters when activating user account ()
Fix 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-27 19:16:23 +08:00
GiteaBot
3c00e89129 [skip ci] Updated translations via Crowdin 2024-12-27 00:32:06 +00:00
Zettat123
df98452c0d
Improve Actions test ()
This PR adds a mock runner to test more actions features.
2024-12-26 22:10:30 +00:00
Zettat123
44b4fb21a4
Support org labels when adding labels by label names ()
Fix 
2024-12-26 19:14:49 +00:00
yp05327
7bb7ba1b5b
Add show more organizations icon in user's profile ()
Close 

# ⚠️ Doc update is required


![image](https://github.com/user-attachments/assets/296c5109-8fc1-43ea-b7dc-e79919cc1f9a)

![image](https://github.com/user-attachments/assets/d30980f6-22e4-4b97-9143-c750dc399da6)


------
⚠️This PR refuses to be cherry-picked by any forked projects without any
mentions.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-27 02:49:50 +08:00
wxiaoguang
550abdbc24
Improve "ellipsis string" () 2024-12-26 14:19:35 +08:00
wxiaoguang
9bfa9f450d
Refactor "string truncate" () 2024-12-26 11:56:03 +08:00
wxiaoguang
594edad213
Do not render truncated links in markdown ()
Fixes 
2024-12-26 00:33:55 +08:00
Lunny Xiao
5feb1a6bff
Use CloseIssue and ReopenIssue instead of ChangeStatus ()
The behaviors of closing issues and reopening issues are very different.
So splitting it into two different functions makes it easier to
maintain.

- [x] Split ChangeIssueStatus into CloseIssue and ReopenIssue both at
the service layer and model layer
- [x] Rename `isClosed` to `CloseOrReopen` to make it more readable.
- [x] Add transactions for ReopenIssue and CloseIssue

---------

Co-authored-by: Zettat123 <zettat123@gmail.com>
2024-12-25 07:38:30 +00:00
Lunny Xiao
f44712f22b
demilestone should not include milestone ()
Fix 
2024-12-25 05:52:46 +00:00
metiftikci
1a7591d7f9
fix textarea newline handle ()
- Fix cursor position if input newline on middle of lines
- ~Increment number if numbered list~


![image](https://github.com/user-attachments/assets/bcfe2625-11a8-4ea4-9a71-b7ecfe81b2e0)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 13:03:43 +08:00
Zettat123
abaeae0b9c
Fix Azure blob object Seek ()
This bug was found in a
[test](https://github.com/go-gitea/gitea/actions/runs/12464294025/job/34788152194?pr=32883#step:9:105)
of 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 04:54:52 +00:00
wxiaoguang
973363fec3
Fix maven pom inheritance ()
Fix  
2024-12-25 04:28:37 +00:00
wxiaoguang
ca31d478ee
Refactor arch route handlers () 2024-12-25 04:03:14 +00:00