914 Commits

Author SHA1 Message Date
Rajesh Jonnalagadda
8d6b3c3e09
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-13 15:07:41 +05:30
Lunny Xiao
6370d2fb93
Detect whether action view branch was deleted (#32764)
Fix #32761 

![图片](https://github.com/user-attachments/assets/a5a7eef8-0fea-4242-b199-1b0b73d9bbdb)
2024-12-12 19:28:23 +00:00
wxiaoguang
22bf2ca6ba
Make API "compare" accept commit IDs (#32801) 2024-12-12 08:10:09 +00:00
yp05327
d43620e7bc
Add is_archived option for issue indexer (#32735)
Try to fix #32697

Reason:
`is_archived` is already defined in the query options, but it is not
implemented in the indexer.
2024-12-12 07:33:31 +08:00
Blender Defender
18061af490
Rearrange Clone Panel (#31142)
Rearrange the clone panel to use less horizontal space.
The following changes have been made to achieve this:
- Moved everything into the dropdown menu
- Moved the HTTPS/SSH Switch to a separate line
- Moved the "Clone in VS Code"-Button up and added a divider
- Named the dropdown button "Code", added appropriate icon

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-11 21:54:30 +08:00
Rajesh Jonnalagadda
51a70e3104
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-11 18:57:53 +05:30
wxiaoguang
e619384098
Add label/author/assignee filters to the user/org home issue list (#32779)
Replace #26661, fix #25979

Not perfect, but usable and much better than before. Since it is quite
complex, I am not quite sure whether there would be any regression, if
any, I will fix in first time.

I have tested the related pages many times: issue list, milestone issue
list, project view, user issue list, org issue list.
2024-12-11 06:33:24 +00:00
Rajesh Jonnalagadda
5dd10049f6
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-10 14:35:11 +05:30
Rajesh Jonnalagadda
2413513bc0 Merge branch 'feat-32257-add-comments-unchanged-lines-and-show' of github.com:rajesh-jonnalagadda/gitea into feat-32257-add-comments-unchanged-lines-and-show 2024-12-10 13:10:53 +05:30
Rajesh Jonnalagadda
96849dda83 chore: handle feedback 2024-12-10 12:54:50 +05:30
wxiaoguang
90d20be541
Refactor issue filter (labels, poster, assignee) (#32771)
Rewrite a lot of legacy strange code, remove duplicate code, remove
jquery, and make these filters reusable.

Let's forget the old code, new code affects: 

* issue list open/close switch
* issue list filter (label, author, assignee)
* milestone list open/close switch
* milestone issue list filter (label, author, assignee)
* project view (label, assignee)
2024-12-10 11:38:22 +08:00
Rajesh Jonnalagadda
b5531f85b1
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-09 09:16:46 +05:30
wxiaoguang
23471e1333
Refactor issue list (#32755)
1. add backend support for filtering "poster" and "assignee"
    * due to the limits, there is no frontend support at the moment
2. rewrite TS code without jquery, now there are 14 jQuery files left:
2024-12-08 20:44:17 +08:00
Lunny Xiao
9d08d3fbf5
Fix compare page bug view as anonymous (#32754)
Fix a bug introduced from
https://github.com/go-gitea/gitea/pull/32403/files#diff-dc86301f15109eee38296d469630672193e0587ad1485fdd8f503bf4c789cf7eR692
2024-12-08 14:38:21 +08:00
Lunny Xiao
cd7bf77b2f
Split issue/pull view router function as multiple smaller functions (#32749)
This PR splits issue/pull view function into multiple smaller functions.
It also removed duplicated branches load.
2024-12-08 04:39:35 +00:00
metiftikci
ad994780af
fix: render job title as commit message (#32748)
resolves #32724

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-08 03:23:09 +00:00
Rajesh Jonnalagadda
959e149089
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-07 12:10:51 +05:30
metiftikci
6bd70d4d87
fix(project): add title to project view page (#32747)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-07 12:44:33 +08:00
wxiaoguang
513da407f4
Support "merge upstream branch" (Sync fork) (#32741)
Add basic "sync fork" support (GitHub-like)

<details>

![image](https://github.com/user-attachments/assets/e71473f4-4518-48c7-b9e2-fedfcd564fc3)

</details>
2024-12-06 21:10:35 +00:00
Rajesh Jonnalagadda
780d483d87
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-06 20:50:23 +05:30
Rajesh Jonnalagadda
50bab1b24b chore: remove the add comment on the line section. fix the hsaComments logic 2024-12-06 20:49:34 +05:30
yp05327
faf5705d29
GitHub like repo home page (#32213)
Move some components (description, license, release, language stats) to sidebar

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-06 14:29:04 +00:00
Rajesh Jonnalagadda
649201dafc
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-06 18:03:02 +05:30
Lunny Xiao
b32f0cdfa0
Make wiki pages visit fast (#32732) 2024-12-06 07:39:50 +00:00
wxiaoguang
f7f68e4cc0
Refactor RepoActionView.vue, add ::group:: support (#32713)
1. make it able to "force reload", then the previous pending request
won't block the new request
2. make it support `::group::`
3. add some TS types (but there are still many variables untyped, this
PR is large enough, the remaining types could be added in the future)
2024-12-06 12:04:16 +08:00
Rajesh Jonnalagadda
510d8ba3f1
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-05 20:26:42 +05:30
Illya Marchenko
936665bf85
Issue time estimate, meaningful time tracking (#23113)
Redesign the time tracker side bar, and add "time estimate" support (in "1d 2m" format)

Closes #23112

---------

Co-authored-by: stuzer05 <stuzer05@gmail.com>
Co-authored-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-05 13:07:53 +00:00
Rajesh Jonnalagadda
5289da253c
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-05 18:06:58 +05:30
wxiaoguang
4142397b0b
Fix mentionable users when writing issue comments (#32715)
Fix #32702
2024-12-04 22:57:50 +08:00
Rajesh Jonnalagadda
c1e4d5766a
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-12-04 19:32:43 +05:30
Lunny Xiao
17053e953f
Fix delete branch perm checking (#32654) 2024-12-04 11:59:48 +08:00
wxiaoguang
2f43536c3e
Fix issue title rendering and refactor legacy function names (#32703)
Fix #32700, regression of recent markup refactoring

And by the way, clarify many legacy problems:

1. Some "RenderXxx" functions do not really "render", they only call "post processors"
2. Merge "RenderEmoji | RenderCodeBlock", they are all for "simple issue title"
2024-12-04 01:39:33 +00:00
Lunny Xiao
829c34129c
Quick fix for license file name (#32696) 2024-12-03 07:59:07 -08:00
Rajesh Jonnalagadda
819dd0890c
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-11-28 15:26:09 +05:30
Pedro Nishiyama
1b296ed1a4
Allow users with write permission to run actions (#32644)
---
I have a use case where I need a team to be able to run actions without
admin access.
2024-11-28 07:18:23 +00:00
Rajesh Jonnalagadda
d36fece725 Merge branch 'feat-32257-add-comments-unchanged-lines-and-show' of github.com:rajesh-jonnalagadda/gitea into feat-32257-add-comments-unchanged-lines-and-show 2024-11-28 04:28:27 +05:30
Rajesh Jonnalagadda
ea285c2131 chore: fix the extra comment icon at the end and change the icon pointer 2024-11-28 04:27:47 +05:30
Rajesh Jonnalagadda
0f6708cca1
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-11-28 02:53:07 +05:30
Lunny Xiao
f62f68cbdd
Move team related functions to service layer (#32537)
There are still some functions under `models` after last big refactor
about `models`. This change will move all team related functions to
service layer with no code change.
2024-11-27 21:12:26 +00:00
Rajesh Jonnalagadda
7d0c8e30e0
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-11-28 01:20:28 +05:30
6543
846f618716
Add priority to protected branch (#32286)
## Solves

Currently for rules to re-order them you have to alter the creation
date. so you basicly have to delete and recreate them in the right
order. This is more than just inconvinient ...

## Solution

Add a new col for prioritization

## Demo WebUI Video

https://github.com/user-attachments/assets/92182a31-9705-4ac5-b6e3-9bb74108cbd1


---
*Sponsored by Kithara Software GmbH*
2024-11-27 05:41:06 +01:00
Rajesh Jonnalagadda
fa4c61e160
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-11-26 20:47:18 +05:30
Lunny Xiao
703be6bf30
Add github compatible tarball download API endpoints (#32572)
Fix #29654 
Fix #32481
2024-11-25 19:35:49 +00:00
Rajesh Jonnalagadda
2db63b16e6
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-11-24 23:50:21 +05:30
wxiaoguang
633785a5f3
Refactor markup render system (#32612)
This PR removes (almost) all path tricks, and introduces "renderhelper"
package.

Now we can clearly see the rendering behaviors for comment/file/wiki,
more details are in "renderhelper" tests.

Fix #31411 , fix #18592, fix #25632 and maybe more problems. (ps: fix
#32608 by the way)
2024-11-24 16:18:57 +08:00
Rajesh Jonnalagadda
7f0c5e4b3d
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-11-23 18:50:28 +05:30
Yarden Shoham
f2a9951741
Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570)
We make sure the user cards are updated

- Fixes https://github.com/go-gitea/gitea/issues/32561

I also removed `ctx.Data["PageIsWatchers"] = true` and
`ctx.Data["PageIsStargazers"] = true` as they are not used anywhere.

# Before

![before](https://github.com/user-attachments/assets/e3bc3235-35eb-4eda-862d-bdf2510282ea)

# After

![after](https://github.com/user-attachments/assets/bc0488a5-8399-4cf6-95c9-17328a9702eb)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2024-11-22 18:51:51 +00:00
Lunny Xiao
fe49cb0243
Fix get reviewers' bug (#32415)
This PR rewrites `GetReviewer` function and move it to service layer.

Reviewers should not be watchers, so that this PR removed all watchers
from reviewers. When the repository is under an organization, the pull
request unit read permission will be checked to resolve the bug of
#32394

Fix #32394
2024-11-22 10:44:48 -05:00
Rajesh Jonnalagadda
a8ace204ac
Merge branch 'main' into feat-32257-add-comments-unchanged-lines-and-show 2024-11-22 19:40:04 +05:30
wxiaoguang
c4e27cb27b
Refactor markup render system (#32589)
This PR mainly moves some code and introduces `RenderContext.WithXxx`
functions
2024-11-22 05:48:09 +00:00