Commit Graph

2845 Commits

Author SHA1 Message Date
Kerwin Bryant 085f273d19
Optimize the dashboard ()
before:

![image](https://github.com/user-attachments/assets/d0b432e4-a521-4540-a489-d18b9c265674)

after:

![image](https://github.com/user-attachments/assets/dbb8b387-d150-41e2-b12b-f9d8450e36d7)
-----

![image](https://github.com/user-attachments/assets/40dcd71e-344b-4043-9811-77227c71aed9)
-----

Optimize the dashboard by adding welcoming messages or quick action
entry points (such as adding a new repository or organization) to ensure
that new users are not greeted by a blank page upon logging in.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-11 01:24:34 +08:00
GiteaBot dbc18f400a [skip ci] Updated translations via Crowdin 2025-02-07 00:31:35 +00:00
GiteaBot 943cc4f989 [skip ci] Updated translations via Crowdin 2025-02-06 00:31:49 +00:00
GiteaBot a6819570be [skip ci] Updated translations via Crowdin 2025-02-05 00:32:05 +00:00
Lunny Xiao a4676db7dd
Fix commit status events ()
Fix  
Fix  
~Fix #33244~
~Fix #33302~

depends on ~#33396~

A part of this PR should be backported to v1.23 manually.
2025-02-04 03:25:59 +00:00
GiteaBot 3c46cd6aae [skip ci] Updated translations via Crowdin 2025-02-04 00:31:03 +00:00
GiteaBot ed84f3737a [skip ci] Updated licenses and gitignores 2025-02-03 00:32:15 +00:00
K Kovacs 34692a20b1
Worktime tracking for the organization level ()
Dear Gitea team,

first of all, thanks for the great work you're doing with this project.

I'm planning to introduce Gitea at a client site, and noticed that while
there is time recording, there are no project-manager-friendly reports
to actually make use of that data, as were also mentioned by others in
  and .

Since I had a little time last weekend, I had put together something
that I hope to be a useful contribution to this great project (while of
course useful for me too).

This PR adds a new "Worktime" tab to the Organisation level. There is a
date range selector (by default set to the current month), and there are
three possible views:

- by repository,
- by milestone, and
- by team member.

Happy to receive any feedback!

There are several possible future improvements of course (predefined
date ranges, charts, a member time sheet, matrix of repos/members, etc)
but I hope that even in this relatively simple state this would be
useful to lots of people.

<img width="1161" alt="Screen Shot 2022-05-25 at 22 12 58"
src="https://user-images.githubusercontent.com/118010/170366976-af00c7af-c4f3-4117-86d7-00356d6797a5.png">

Keep up the good work!

Kristof

---------

Co-authored-by: user <user@kk-git1>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-03 01:51:12 +08:00
GiteaBot 9cd88ef8c7 [skip ci] Updated translations via Crowdin 2025-02-02 00:33:31 +00:00
GiteaBot 5b83203f37 [skip ci] Updated translations via Crowdin 2025-02-01 00:33:46 +00:00
wxiaoguang 256b94e9e9
Support choose email when creating a commit via web UI ()
Initial PR for 
2025-01-30 01:24:57 +00:00
GiteaBot a89c735303 [skip ci] Updated translations via Crowdin 2025-01-29 00:31:19 +00:00
GiteaBot 121e4c9624 [skip ci] Updated translations via Crowdin 2025-01-28 00:31:19 +00:00
GiteaBot fae69bc6d4 [skip ci] Updated translations via Crowdin 2025-01-27 00:32:12 +00:00
GiteaBot 2cc65e356e [skip ci] Updated translations via Crowdin 2025-01-26 00:32:05 +00:00
GiteaBot 3e1b63f75b [skip ci] Updated translations via Crowdin 2025-01-24 00:31:03 +00:00
GiteaBot 340d9ec42d [skip ci] Updated translations via Crowdin 2025-01-23 00:31:02 +00:00
GiteaBot 3682231f17 [skip ci] Updated translations via Crowdin 2025-01-22 00:31:50 +00:00
wxiaoguang 7069369e03
Support performance trace ()
1. Add a OpenTelemetry-like shim-layer to collect traces
2. Add a simple builtin trace collector and exporter, end users could
download the diagnosis report to get the traces.

This PR's design is quite lightweight, no hard-dependency, and it is
easy to improve or remove. We can try it on gitea.com first to see
whether it works well, and fine tune the details.

---------

Co-authored-by: silverwind <me@silverwind.io>
2025-01-21 18:57:07 +00:00
GiteaBot 2e42e96ce2 [skip ci] Updated translations via Crowdin 2025-01-21 00:31:12 +00:00
wxiaoguang 39de2955fd
Improve sync fork behavior ()
Fix 

Suppose there is a `branch-a` in fork repo:

1. if `branch-a` exists in base repo: try to sync `base:branch-a` to `fork:branch-a`
2. if `branch-a` doesn't exist in base repo: try to sync `base:main` to `fork:branch-a`
2025-01-20 15:17:47 +08:00
GiteaBot 13dbd260b7 [skip ci] Updated licenses and gitignores 2025-01-20 00:31:52 +00:00
GiteaBot f250ee6360 [skip ci] Updated translations via Crowdin 2025-01-19 00:33:43 +00:00
GiteaBot fffc8550ab [skip ci] Updated translations via Crowdin 2025-01-18 00:30:24 +00:00
wxiaoguang 3b839f8dc0
Trivial fixes ()
1. the error check was added for go-git, it was caused by the empty `.keep` file in the test fixtures.
2. use `PostFormValue` instead of `PostForm.Get` (`Get` needs to parse the form ahead)
3. fix incorrect container text (it should show "Images" in the header but not "OS/Arch")
4. align maven xml
5. fix closed PR color&icon
2025-01-17 08:55:02 +00:00
GiteaBot 7582eb0419 [skip ci] Updated translations via Crowdin 2025-01-17 00:31:11 +00:00
wxiaoguang cfc6e21f06
Fix incorrect ref usages ()
Fix 

By the way, improve some locales
2025-01-16 13:52:21 +00:00
Kemal Zebari 2483a93fbc
Only allow admins to rename default/protected branches ()
Currently, anyone with write permissions to a repo are able to rename
default or protected branches.

This change follows
[GitHub's](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch)
design by only allowing repo/site admins to change these branches.
However, it also follows are current design for protected branches and
only allows admins to modify branch names == branch protection rule
names. Glob-based rules cannot be renamed by anyone (as was already the
case, but we now catch `ErrBranchIsProtected` which we previously did
not catch, throwing a 500).
2025-01-15 20:51:49 +00:00
GiteaBot cbf933eb4e [skip ci] Updated translations via Crowdin 2025-01-15 00:31:44 +00:00
wxiaoguang 1299fdb084
Add a confirm dialog for "sync fork" ()
Try to quickly fix 
2025-01-14 18:30:43 +00:00
wxiaoguang a98a836e76
Support public code/issue access for private repositories ()
Close , close  (will add "anonymous access" in following PRs)
2025-01-14 01:53:34 +00:00
GiteaBot 58ac17c005 [skip ci] Updated translations via Crowdin 2025-01-14 00:31:05 +00:00
wxiaoguang 81352542fd
Refactor context RefName and RepoAssignment ()
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
GiteaBot 604365efd7 [skip ci] Updated translations via Crowdin 2025-01-13 00:34:26 +00:00
GiteaBot a7e750414c [skip ci] Updated translations via Crowdin 2025-01-12 00:35:53 +00:00
Lunny Xiao fd7d393c67
Fix unpin hint on the pinned pull requests () 2025-01-12 00:05:33 +00:00
GiteaBot 8f8ad8e272 [skip ci] Updated translations via Crowdin 2025-01-10 00:32:29 +00:00
GiteaBot fa9191b7b9 [skip ci] Updated translations via Crowdin 2025-01-09 00:32:21 +00:00
Rowan Bohde a8e7caedfa
add submodule diff links ()
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 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-08 01:38:30 +00:00
GiteaBot ec84687df9 [skip ci] Updated translations via Crowdin 2025-01-08 00:32:07 +00:00
GiteaBot 485d184a5c [skip ci] Updated translations via Crowdin 2025-01-07 00:32:09 +00:00
GiteaBot 3c1c508421 [skip ci] Updated translations via Crowdin 2025-01-06 00:34:05 +00:00
ChristopherHX 4237736029
workflow_dispatch use workflow from trigger branch ()
* 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 
Closes 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-05 21:47:18 +08:00
GiteaBot 3078826d01 [skip ci] Updated translations via Crowdin 2025-01-05 00:35:35 +00:00
wxiaoguang 3d544a3ad3
Fix empty git repo handling logic ()
Fix 
2025-01-04 18:47:24 +08:00
GiteaBot a739c784d9 [skip ci] Updated translations via Crowdin 2025-01-03 00:31:40 +00:00
GiteaBot 2852708fdf [skip ci] Updated translations via Crowdin 2025-01-02 00:31:55 +00:00
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>
2025-01-01 19:07:10 +08:00
GiteaBot 92a2900a2d [skip ci] Updated translations via Crowdin 2025-01-01 00:35:43 +00:00
wxiaoguang 58c092cfea
Fix locale type ()
Follow 
2024-12-31 06:37:37 +00:00