2
0
Commit Graph

2966 Commits

Author SHA1 Message Date
GiteaBot
e07f144d52 [skip ci] Updated translations via Crowdin 2025-06-24 00:37:54 +00:00
TheFox0x7
8a7258d312 correct migration tab name (#34826)
Previous version reads like we're migrating some kind of status instead
of what it is - status of the migration.
2025-06-24 02:21:45 +08:00
GiteaBot
097c5cd1b6 [skip ci] Updated translations via Crowdin 2025-06-23 00:40:49 +00:00
NorthRealm
b3c72117d3 Add "Cancel workflow run" button to Actions list page (#34817) 2025-06-22 19:05:16 -04:00
Brecht Van Lommel
7f9b2379c0 Edit file workflow for creating a fork and proposing changes (#34240)
When viewing a file that the user can't edit because they can't write to
the branch, the new, upload, patch, edit and delete functionality is no
longer disabled.

If no user fork of the repository exists, there is now a page to create one.
It will automatically create a fork with a single branch matching the one
being viewed, and a unique repository name will be automatically picked.

When a fork exists, but it's archived, a mirror or the user can't write
code to it, there will instead be a message explaining the situation.

If the usable fork exists, a message will appear at the top of the edit page
explaining that the changes will be applied to a branch in the fork. The
base repository branch will be pushed to a new branch to the fork, and
then the edits will be applied on top.

The suggestion to fork happens when accessing /_edit/, so that for
example online documentation can have an "edit this page" link to
the base repository that does the right thing.

Also includes changes to properly report errors when trying to commit
to a new branch that is protected, and when trying to commit to an
existing branch when choosing the new branch option.

Resolves #9017, #20882

---------

Co-authored-by: Brecht Van Lommel <brecht@blender.org>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-22 12:43:43 +00:00
GiteaBot
400d3352a5 [skip ci] Updated translations via Crowdin 2025-06-22 00:42:06 +00:00
Kerwin Bryant
37f02d0ddf Add post-installation redirect based on admin account status (#34493)
This PR adds a feature to direct users to appropriate pages after system
installation:
- If no admin credentials were provided during installation, redirect to
the registration page with a prominent notice about creating the first
administrative account
- If admin credentials were already set, redirect directly to the login
page


![4d396ad132d9b57fc4f45a62117177f1](https://github.com/user-attachments/assets/3a5d8700-9194-4d3b-a862-e64c8c347932)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-21 18:48:06 +00:00
Lunny Xiao
b3c2850c29 Rework delete org and rename org UI (#34762)
# What's the problem of the original implementation

Renaming organization will mix with organization's information change
make the operation difficult to keep consistent.

This PR created a danger zone like what's repository setting. It also
moved organization's `rename` and `delete` operations to this zone. The
original updating repository will not change the name any more.

This is also a step to extract the `updaterepository` function
completely.

Before:


![image](https://github.com/user-attachments/assets/d097dfdf-07be-4d79-8fcf-e78822515575)

![image](https://github.com/user-attachments/assets/42ee832c-cb44-41ec-9fe3-92a1c94747d2)

After:


![image](https://github.com/user-attachments/assets/f7700ed7-f104-4302-a924-09e118f24be3)

![image](https://github.com/user-attachments/assets/4c49952a-578e-4d14-bd01-4a68c9e02412)

![image](https://github.com/user-attachments/assets/814829d3-00fe-4e87-ae05-625c129170d2)

![image](https://github.com/user-attachments/assets/b067b263-c909-4b48-b23c-73481c32d350)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-21 18:21:48 +00:00
wxiaoguang
27d521e294 Refactor editor (#34780)
A complete rewrite
2025-06-21 19:20:51 +08:00
GiteaBot
0e99b08807 [skip ci] Updated translations via Crowdin 2025-06-21 00:37:09 +00:00
ChristopherHX
7cf43e1e85 Add workflow_run api + webhook (#33964)
Implements 
- https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run--code-samples
- https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#get-a-job-for-a-workflow-run--code-samples
- https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository
- https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run
  - `/actions/runs` for global + user + org (Gitea only)
  - `/actions/jobs` for global + user + org + repository (Gitea only)
  - workflow_run webhook + action trigger
    - limitations
- workflow id is assigned to a string, this may result into problems in
strongly typed clients

Fixes
- workflow_job webhook url to no longer contain the `runs/<run>` part to
align with api
- workflow instance does now use it's name inside the file instead of
filename if set

Refactoring
- Moved a lot of logic from workflows/workflow_job into a shared module
used by both webhook and api

TODO
- [x] Verify Keda Compatibility
- [x] Edit Webhook API bug is resolved
 
Closes https://github.com/go-gitea/gitea/issues/23670
Closes https://github.com/go-gitea/gitea/issues/23796
Closes https://github.com/go-gitea/gitea/issues/24898
Replaces https://github.com/go-gitea/gitea/pull/28047 and is much more
complete

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-20 20:14:00 +08:00
GiteaBot
c637335b04 [skip ci] Updated translations via Crowdin 2025-06-20 00:37:18 +00:00
GiteaBot
b11ffc97a5 [skip ci] Updated translations via Crowdin 2025-06-19 00:37:30 +00:00
GiteaBot
f75c109c79 [skip ci] Updated translations via Crowdin 2025-06-18 00:37:12 +00:00
GiteaBot
e274d77151 [skip ci] Updated translations via Crowdin 2025-06-17 00:37:42 +00:00
bytedream
81ca51feb9 Allow renaming/moving binary/LFS files in the UI (#34350)
Adds the ability to rename/move binary files like binary blobs or images
and files that are too large in the web ui.
This was purposed in #24722, along with the ability edit images via an
upload of a new image, which I didn't implement here (could be done in a
separate PR).

Binary file content:

![binary](https://github.com/user-attachments/assets/61d9ff71-25d3-4832-9288-452cdefc7283)

File too large:

![toolarge](https://github.com/user-attachments/assets/3b42dbd0-e76a-4c3c-92d2-52ebffedea64)

GitHub does the same (I've copied the text from there):

![gh](https://github.com/user-attachments/assets/e1499813-fb71-4544-9d58-086046a5f13e)
2025-06-16 17:15:07 -07:00
GiteaBot
a2795a07c1 [skip ci] Updated translations via Crowdin 2025-06-15 00:41:44 +00:00
GiteaBot
1286c8de7b [skip ci] Updated translations via Crowdin 2025-06-14 00:35:48 +00:00
GiteaBot
dcbf150ca6 [skip ci] Updated translations via Crowdin 2025-06-13 00:37:13 +00:00
GiteaBot
a3dfe186db [skip ci] Updated translations via Crowdin 2025-06-12 00:36:44 +00:00
GiteaBot
f7f8fe721b [skip ci] Updated translations via Crowdin 2025-06-11 00:37:02 +00:00
GiteaBot
5ca5a916ae [skip ci] Updated translations via Crowdin 2025-06-10 00:37:13 +00:00
GiteaBot
771f47a160 [skip ci] Updated translations via Crowdin 2025-06-09 00:39:30 +00:00
GiteaBot
effa75c374 [skip ci] Updated translations via Crowdin 2025-06-08 00:41:38 +00:00
silverwind
eb90389959 Update JS deps, regenerate SVGs (#34640)
Result of `make update-js svg`.
2025-06-07 17:59:36 +00:00
Kemal Zebari
9a2e966ab0 Validate hex colors when creating/editing labels (#34623)
Resolves #34618.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-07 11:25:08 +03:00
NorthRealm
503419624d Small fix in Pull Requests page (#34612) 2025-06-06 02:10:42 +00:00
GiteaBot
d78c33158b [skip ci] Updated translations via Crowdin 2025-05-31 00:35:32 +00:00
GiteaBot
055ad8e8c0 [skip ci] Updated translations via Crowdin 2025-05-30 00:36:36 +00:00
NorthRealm
bf5ed446c4 Add "View workflow file" to Actions list page (#34538)
This PR adds "View workflow file" to Actions list page, and replaces the
redundant link.

Related #34530

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-05-28 20:30:00 +08:00
GiteaBot
93710c0fc9 [skip ci] Updated translations via Crowdin 2025-05-26 00:37:55 +00:00
GiteaBot
d670c40899 [skip ci] Updated translations via Crowdin 2025-05-23 00:36:43 +00:00
GiteaBot
4862334c95 [skip ci] Updated translations via Crowdin 2025-05-22 00:36:11 +00:00
GiteaBot
418d8adf2a [skip ci] Updated translations via Crowdin 2025-05-21 00:37:21 +00:00
a1012112796
43f2376f78 ui: add a default tab on repo header when migrating (#34503)
Signed-off-by: a1012112796 <1012112796@qq.com>
2025-05-20 11:14:18 -04:00
GiteaBot
b562c17c0a [skip ci] Updated translations via Crowdin 2025-05-19 00:38:52 +00:00
Ryo Hanafusa
4893ef3676 Add R-HNF to the TRANSLATORS file (#34494)
I would like to be added to the TRANSLATORS file.

Here are my related activities:
* https://crowdin.com/profile/R-HNF/activity
* commit: [skip ci] Updated translations via Crowdin
b6c4c26fb9

I also referred to the following PRs:
* #8451
* #8292
2025-05-17 09:58:27 -07:00
GiteaBot
b6c4c26fb9 [skip ci] Updated translations via Crowdin 2025-05-15 00:35:31 +00:00
GiteaBot
33437d487f [skip ci] Updated translations via Crowdin 2025-05-14 00:36:37 +00:00
NorthRealm
e25c0caa7a Add endpoint deleting workflow run (#34337)
Add endpoint deleting workflow run
Resolves #26219

/claim #26219

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-05-13 19:18:13 +00:00
GiteaBot
227bbd3353 [skip ci] Updated translations via Crowdin 2025-05-12 00:38:34 +00:00
GiteaBot
117a617d0c [skip ci] Updated translations via Crowdin 2025-05-10 00:34:13 +00:00
GiteaBot
4390cb8431 [skip ci] Updated translations via Crowdin 2025-05-09 00:36:27 +00:00
NorthRealm
0f742999a3 Add a button editing action secret (#34348)
Add a button editing action secret
Closes #34190

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-05-08 17:11:43 +00:00
GiteaBot
76205d7c76 [skip ci] Updated translations via Crowdin 2025-05-08 00:36:14 +00:00
silverwind
7f5504c669 Update JS and PY dependencies (#34391)
Result of `make update-js update-py svg`. Quick test of the UI worked.
2025-05-07 13:21:38 -04:00
NorthRealm
3f01da4995 Grey out expired artifact on Artifacts list (#34314)
Grey out expired artifact on Artifacts list.

![1](https://github.com/user-attachments/assets/79c00e39-29f5-4264-b7b2-7ed638ab71c1)

![2](https://github.com/user-attachments/assets/686b745f-d6d7-4921-8e1b-3472ac8b6c17)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-05-05 21:53:17 -07:00
GiteaBot
659f34eb94 [skip ci] Updated translations via Crowdin 2025-05-05 00:38:37 +00:00
Lunny Xiao
14ae61b84e Use lfs label for lfs file rather than a long description (#34363)
Before


![image](https://github.com/user-attachments/assets/ed6c9221-5a6a-4717-8178-e5528fd180bf)

After


![image](https://github.com/user-attachments/assets/baa94350-ead4-46bf-b4b7-1bfd3aa5dcac)
2025-05-05 00:07:29 +03:00
GiteaBot
76513f8e5d [skip ci] Updated translations via Crowdin 2025-04-30 00:35:28 +00:00