Lunny Xiao
ca964c1ce9
Merge branch 'main' into kerwin612-add-file-tree-to-file-view-page
2025-01-14 12:29:47 -08:00
wxiaoguang
1299fdb084
Add a confirm dialog for "sync fork" ( #33270 )
...
Try to quickly fix #33264
2025-01-14 18:30:43 +00:00
wxiaoguang
5eff19a77a
Fix sidebar milestone link ( #33269 )
...
Fix #33266
2025-01-14 13:01:53 -05:00
yp05327
3a749fc816
Fix 500 error when error occurred in migration page ( #33256 )
...
The template should be `repo/migrate/{service type}`
But input element `service` is not in the form.
Related: #33081
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-14 06:29:44 +00:00
wxiaoguang
a98a836e76
Support public code/issue access for private repositories ( #33127 )
...
Close #8649 , close #639 (will add "anonymous access" in following PRs)
2025-01-14 01:53:34 +00:00
Kemal Zebari
ecd463c2f1
Validate that the tag doesn't exist when creating a tag via the web ( #33241 )
...
Found while investigating #33210 .
This line no longer makes sense because the form field "TagName" is
required, so this would mean that this code path would never be covered.
Because it isn't covered, we end up going down the "update release"
logic where we eventually set `Release.IsTag` to false (meaning it will
now be treated as a release instead of a tag).
This snapshot rewrites the condition to ensure that we aren't trying to
create a tag that already exists.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-14 09:27:35 +08:00
Kerwin Bryant
459edfebcb
fix
2025-01-14 01:21:54 +00:00
Lunny Xiao
bdd78dfdcb
Use the old infrustructure about getting refullname
2025-01-13 17:11:57 -08:00
Kerwin Bryant
c0e2fd2e7d
fix
2025-01-13 05:41:46 +00:00
Lunny Xiao
eff3568d31
Merge branch 'main' into kerwin612-add-file-tree-to-file-view-page
2025-01-12 20:54:57 -08:00
wxiaoguang
81352542fd
Refactor context RefName and RepoAssignment ( #33226 )
...
The `ctx.Repo.RefName` was used to be a "short name", it causes a lot of
ambiguity.
This PR does some refactoring and use `RefFullName` to replace the
legacy `RefName`, and simplify RepoAssignment
2025-01-13 01:07:05 +00:00
wxiaoguang
9024b79933
Remove unused CSS styles and move some styles to proper files ( #33217 )
2025-01-12 05:16:22 +00:00
wxiaoguang
a068462ac0
Refactor context repository ( #33202 )
2025-01-12 03:39:46 +00:00
Lunny Xiao
fd7d393c67
Fix unpin hint on the pinned pull requests ( #33207 )
2025-01-12 00:05:33 +00:00
Lunny Xiao
818ad6a3ed
Merge branch 'add-file-tree-to-file-view-page' of github.com:kerwin612/gitea into kerwin612-add-file-tree-to-file-view-page
2025-01-09 23:11:38 -08:00
Lunny Xiao
f769c8bf43
Make template simpler
2025-01-09 23:11:33 -08:00
Kerwin Bryant
67342378d3
Merge branch 'upstream_main' into add-file-tree-to-file-view-page
2025-01-10 06:53:59 +00:00
Chai-Shi
e5f3c16587
Fix sync fork for consistency ( #33147 )
...
Fixes #33145
An integration test could be added.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-10 05:29:55 +00:00
Kerwin Bryant
34dc5b1c1d
Merge branch 'main' into add-file-tree-to-file-view-page
2025-01-10 02:02:46 +00:00
Kerwin Bryant
335375fd76
merge main
2025-01-10 01:57:19 +00:00
yp05327
2298ff2152
Fix branch dropdown not display ref name ( #33159 )
...
Before:

After:

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-09 18:43:49 +00:00
wxiaoguang
a5043af8ea
Fix assignee list overlapping in Issue sidebar ( #33176 )
...
Fix #33170


2025-01-10 01:58:37 +08:00
yp05327
88366f280e
Move repo size to sidebar ( #33155 )
...

2025-01-09 07:45:51 +00:00
wxiaoguang
9c00e065a1
Fix form width ( #33151 )
...
Fix #33150
2025-01-08 23:57:18 +08:00
Rowan Bohde
a8e7caedfa
add submodule diff links ( #33097 )
...
This adds links to submodules in diffs, similar to the existing link
when viewing a repo at a specific commit. It does this by expanding diff
parsing to recognize changes to submodules, and find the specific refs
that are added, deleted or changed.
Related #25888
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-08 01:38:30 +00:00
Kerwin Bryant
91f972ce82
fix
2025-01-06 06:59:04 +00:00
wxiaoguang
40765b5d45
Fix repo empty guide ( #33114 )
2025-01-06 12:07:52 +08:00
Kerwin Bryant
c949f42d4d
fix
2025-01-06 03:20:42 +00:00
Kerwin Bryant
ad9b126ad6
fix
2025-01-06 01:38:46 +00:00
wxiaoguang
cf60734a4d
Fix dropdown menu header and mobile view ( #33108 )
...

----

----

2025-01-05 21:20:22 +00:00
ChristopherHX
4237736029
workflow_dispatch use workflow from trigger branch ( #33098 )
...
* htmx updates the input form on branch switch
* add workflow warning to dispatch modal
* use name if description of input is empty
* show error if workflow_dispatch not available on branch
Closes #33073
Closes #33099
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-05 21:47:18 +08:00
wxiaoguang
3d544a3ad3
Fix empty git repo handling logic ( #33101 )
...
Fix #33092
2025-01-04 18:47:24 +08:00
Kerwin Bryant
2a8f9c8531
fix
2025-01-03 08:53:47 +00:00
Kerwin Bryant
087f0d41bd
fix
2025-01-03 07:47:44 +00:00
Kerwin Bryant
b1b24282ae
Merge branch 'main' into add-file-tree-to-file-view-page
2025-01-03 13:52:57 +08:00
wxiaoguang
68972a9947
Clean up legacy form CSS styles ( #33081 )
2025-01-03 04:01:19 +00:00
wxiaoguang
85c756e279
Refactor pull-request compare&create page ( #33071 )
...
The old code is unnecessarily complex.
2025-01-02 01:16:09 +08:00
Steffen Schröter
57eb9d0b64
Inherit submodules from template repository content ( #16237 )
...
Fix #10316
---------
Signed-off-by: Steffen Schröter <steffen@vexar.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-01 02:55:13 +00:00
Chai-Shi
0387195abb
[Feature] Private README.md for organization ( #32872 )
...
Implemented #29503
---------
Co-authored-by: Ben Chang <ben_chang@htc.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-31 04:22:09 +00: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
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
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
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
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
Kerwin Bryant
e46f7e40a1
Merge branch 'main' into add-file-tree-to-file-view-page
2024-12-24 13:24:54 +08:00
wxiaoguang
89f31f79fd
Fix outdated tmpl code ( #32953 )
...
Some PRs were before tmpl ctx refactoring and used outdated code
2024-12-23 11:21:11 +08:00
Kerwin Bryant
07fb84f830
Merge branch 'main' into add-file-tree-to-file-view-page
2024-12-23 10:56:23 +08:00