wxiaoguang
1dbf0d7f08
Test webhook email ( #33033 )
...
Close #27918
2024-12-30 01:25:49 +08:00
Henry Goodman
a96776b3cb
Fix review code comment avatar alignment ( #33031 )
...
Fixes #33017
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 ( #33025 )
...
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 ( #33021 )
...
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 ( #33006 )
...
### Before

### After

2024-12-29 00:30:06 +00:00
metiftikci
94048f3035
fix toggle commit body button ui when latest commit message is long ( #32997 )
...
#### Before

#### After

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


---------
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 ( #33015 )
2024-12-28 11:51:38 +00:00
wxiaoguang
3d3ece36d2
Refactor comment history and fix content edit ( #33018 )
...
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 ( #33008 )
...
A repository with no issue will display a random number on activities
page. This is caused by wrong usage of `And` and `Or`.

2024-12-28 04:04:07 +00:00
wxiaoguang
e435b1900a
Refactor arch route handlers ( #32993 )
2024-12-28 03:31:46 +00:00
metiftikci
254314be5f
fix scoped label ui when contains emoji ( #33007 )
...
### Before

### After

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 ( #31160 )
...
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 ( #33002 )
...
Fix #32982
Related #32869
* 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 ( #32999 )
...
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 ( #32998 )
...
Fix #32807
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-27 19:16:23 +08:00
Kerwin Bryant
91ffb2d720
fix bug
2024-12-27 06:31:28 +00:00
GiteaBot
3c00e89129
[skip ci] Updated translations via Crowdin
2024-12-27 00:32:06 +00:00
Zettat123
df98452c0d
Improve Actions test ( #32883 )
...
This PR adds a mock runner to test more actions features.
2024-12-26 22:10:30 +00:00
Lunny Xiao
bf15e1878c
Fix bug
2024-12-26 12:38:11 -08:00
Lunny Xiao
1a1fe32256
Fix bug
2024-12-26 12:09:57 -08:00
Lunny Xiao
e860a363e7
Add more comment
2024-12-26 11:46:47 -08:00
Lunny Xiao
a19a972159
Merge branch 'main' into kerwin612-add-file-tree-to-file-view-page
2024-12-26 11:42:42 -08:00
Lunny Xiao
9ae1c85ee8
Fix bug
2024-12-26 11:41:00 -08:00
Zettat123
44b4fb21a4
Support org labels when adding labels by label names ( #32988 )
...
Fix #32891
2024-12-26 19:14:49 +00:00
yp05327
7bb7ba1b5b
Add show more
organizations icon in user's profile ( #32986 )
...
Close #32952
# ⚠️ Doc update is required


------
⚠️ 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
Lunny Xiao
2178347348
add function for recusive
2024-12-26 00:30:03 -08:00
Lunny Xiao
15f4b920b7
Merge branch 'add-file-tree-to-file-view-page' of github.com:kerwin612/gitea into kerwin612-add-file-tree-to-file-view-page
2024-12-25 22:32:47 -08:00
wxiaoguang
550abdbc24
Improve "ellipsis string" ( #32989 )
2024-12-26 14:19:35 +08:00
wxiaoguang
9bfa9f450d
Refactor "string truncate" ( #32984 )
2024-12-26 11:56:03 +08:00
Kerwin Bryant
634fbe0c2d
Merge branch 'main' into add-file-tree-to-file-view-page
2024-12-26 08:52:35 +08:00
Kerwin Bryant
143249f4f1
change loading
2024-12-26 00:51:46 +00:00
wxiaoguang
594edad213
Do not render truncated links in markdown ( #32980 )
...
Fixes #31780
2024-12-26 00:33:55 +08:00
Kerwin Bryant
158b79e40a
debug new api /tree
2024-12-25 08:55:43 +00:00
Lunny Xiao
5feb1a6bff
Use CloseIssue
and ReopenIssue
instead of ChangeStatus
( #32467 )
...
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 ( #32923 )
...
Fix #32887
2024-12-25 05:52:46 +00:00
metiftikci
1a7591d7f9
fix textarea newline handle ( #32966 )
...
- Fix cursor position if input newline on middle of lines
- ~Increment number if numbered list~

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 13:03:43 +08:00
Zettat123
abaeae0b9c
Fix Azure blob object Seek
( #32974 )
...
This bug was found in a
[test](https://github.com/go-gitea/gitea/actions/runs/12464294025/job/34788152194?pr=32883#step:9:105 )
of #32883
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 04:54:52 +00:00
wxiaoguang
973363fec3
Fix maven pom inheritance ( #32943 )
...
Fix #30568
2024-12-25 04:28:37 +00:00
wxiaoguang
ca31d478ee
Refactor arch route handlers ( #32972 )
2024-12-25 04:03:14 +00:00
GiteaBot
65e45fdcfd
[skip ci] Updated translations via Crowdin
2024-12-25 00:31:17 +00:00
wxiaoguang
b7260400f8
Refactor tmpl and blob_excerpt ( #32967 )
...
1. do not use `{{/* */}}` to remove spaces, use `{{- -}}`
2. fix "blob_excerpt" endpoint, remove the legacy fragile code: have
tested commit diff and wiki diff
2024-12-25 00:51:13 +08:00
wxiaoguang
2a828e2798
Clarify path param naming ( #32969 )
...
In history (from some legacy frameworks), both `:name` and `name` are
supported as path path name, `:name` is an alias to `name`.
To make code consistent, now we should only use `name` but not `:name`.
Also added panic check in related functions to make sure the name won't
be abused in case some downstreams still use them.
2024-12-24 13:47:45 +00:00
Kerwin Bryant
76a56149d5
Merge branch 'main' into add-file-tree-to-file-view-page
2024-12-24 20:54:19 +08:00
Kerwin Bryant
a1830dc1e8
Merge pull request #3 from lunny/add-file-tree-to-file-view-page
...
Fix a TODO
2024-12-24 14:39:30 +08:00
Lunny Xiao
f2b1da5392
Fix bug
2024-12-23 22:30:21 -08:00
Lunny Xiao
b8b690feb9
Refactor getpatch/getdiff functions and remove unnecessary fallback ( #32817 )
...
Extract from #32786
`git diff a..b` is equal to `git diff a b` which is different from `git
diff a...b`. For pull request, we should always
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-24 14:29:34 +08:00
Lunny Xiao
3b3eaec840
Fix todo
2024-12-23 22:08:53 -08:00
Kerwin Bryant
6cb22e5046
Merge pull request #2 from lunny/add-file-tree-to-file-view-page
...
Add some backend logic
2024-12-24 13:29:35 +08:00