f6dbf0e7b3
Fix incorrect TagName/BranchName usages ( #33279 )
...
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
Add add a new test
2025-01-15 17:34:55 +08:00
fcd096231a
Simplify context ref name ( #33267 )
2025-01-15 11:15:47 +08:00
1299fdb084
Add a confirm dialog for "sync fork" ( #33270 )
...
Try to quickly fix #33264
2025-01-14 18:30:43 +00:00
5eff19a77a
Fix sidebar milestone link ( #33269 )
...
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Fix #33266
2025-01-14 13:01:53 -05:00
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
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
ecd463c2f1
Validate that the tag doesn't exist when creating a tag via the web ( #33241 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
a90af22003
Let API create and edit system webhooks, attempt 2 ( #33180 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
This PR fixes inconsistencies between system and default webhooks in the
Gitea API. (See also #26418 )
- A system webhook is a webhook that captures events for all
repositories.
- A default webhook is copied to a new repository when it is created.
Before this PR `POST /api/v1/admin/hooks/` creates default webhooks (if
not configured otherwise) and `GET /api/v1/admin/hooks/` returns system
webhooks.
The PR introduces an optional query parameter to `GET
/api/v1/admin/hooks/` to enable selecting if either default, system or
both kind of webhooks should be retrieved. By default the flag is set to
return system webhooks keep current behaviour.
## Examples
### System Webhooks
#### Create
```
POST /api/v1/admin/hooks/
{
"type": "gitea",
"active": false,
"branch_filter": "*",
"events": [ "create", "..." ],
"config": {
"url": "http://...",
"content_type": "json",
"secret": "secret",
"is_system_webhook": true // <-- controls hook type
}
}
```
#### List
```
GET/api/v1/admin/hooks?type=system //type argument is optional here since it's the default
```
#### Others
The other relevant endpoints work as expected by referencing the hook by
id
```
GET /api/v1/admin/hooks/:id
PATCH /api/v1/admin/hooks/:id
DELETE /api/v1/admin/hooks/:id
```
### Default Webhooks
#### Create
```
POST /api/v1/admin/hooks/
{
"type": "gitea",
"active": false,
"branch_filter": "*",
"events": [ "create", "..." ],
"config": {
"url": "http://...",
"content_type": "json",
"secret": "secret",
"is_system_webhook": false // optional, as false is the default value
}
}
```
#### List
```
GET/api/v1/admin/hooks?type=default
```
#### Others
The other relevant endpoints work as expected by referencing the hook by
id
```
GET /api/v1/admin/hooks/:id
PATCH /api/v1/admin/hooks/:id
DELETE /api/v1/admin/hooks/:id
```
2025-01-13 17:17:39 +00:00
81352542fd
Refactor context RefName and RepoAssignment ( #33226 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
9024b79933
Remove unused CSS styles and move some styles to proper files ( #33217 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2025-01-12 05:16:22 +00:00
a068462ac0
Refactor context repository ( #33202 )
2025-01-12 03:39:46 +00:00
fd7d393c67
Fix unpin hint on the pinned pull requests ( #33207 )
2025-01-12 00:05:33 +00:00
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
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
a5043af8ea
Fix assignee list overlapping in Issue sidebar ( #33176 )
...
Fix #33170


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

2025-01-09 07:45:51 +00:00
9c00e065a1
Fix form width ( #33151 )
...
Fix #33150
2025-01-08 23:57:18 +08:00
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
ef736b7e27
Refactor legacy JS ( #33115 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-01-06 17:38:42 +08:00
40765b5d45
Fix repo empty guide ( #33114 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2025-01-06 12:07:52 +08:00
cf60734a4d
Fix dropdown menu header and mobile view ( #33108 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run

----

----

2025-01-05 21:20:22 +00:00
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
df9d1fe8c5
Trivial fixes ( #33103 )
...
1. remove `gock` dependency, it is not needed
2. fix a regression from org private profile readme
2025-01-04 22:25:50 +00:00
3d544a3ad3
Fix empty git repo handling logic ( #33101 )
...
cron-translations / crowdin-pull (push) Has been skipped
cron-licenses / cron-licenses (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Fix #33092
2025-01-04 18:47:24 +08:00
68972a9947
Clean up legacy form CSS styles ( #33081 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-01-03 04:01:19 +00:00
9ac536a904
Fix "stop time tracking button" on navbar ( #33084 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Fix #33083
By the way (something I was working on):
1. relax color/background-color for more markup elements
2. fix a command line sentence error
2025-01-03 04:01:05 +08:00
45973a100b
Fix bleve fuzziness search ( #33078 )
...
Close #31565
2025-01-03 00:32:02 +08:00
85c756e279
Refactor pull-request compare&create page ( #33071 )
...
The old code is unnecessarily complex.
2025-01-02 01:16:09 +08:00
d030cace1a
feat: link to nuget dependencies ( #26554 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
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
2564c15cb0
Remove some unnecessary template helpers ( #33069 )
...
DisableGitHooks and DisableImportLocal are only used when editing a
user, so only set them in `editUserCommon`
2025-01-01 18:02:34 +08:00
57eb9d0b64
Inherit submodules from template repository content ( #16237 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
54bd220520
Optimize the installation page ( #32994 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-31 04:49:26 +00:00
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
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
ff96873e3e
Fix templating in pull request comparison ( #33025 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
cron-licenses / cron-licenses (push) Has been skipped
Adds test for expected behavior
Closes: https://github.com/go-gitea/gitea/issues/33013
2024-12-29 01:32:19 +00:00
64bebc9402
always show assignees on right ( #33006 )
...
### Before

### After

2024-12-29 00:30:06 +00:00
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
a92f5057ae
Fix and/or comment some legacy CSS problems ( #33015 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2024-12-28 11:51:38 +00:00
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
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
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
b7260400f8
Refactor tmpl and blob_excerpt ( #32967 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
781c6df40f
Add sub issue list support ( #32940 )
...
Just like GitHub, show issue icon/title when the issue number is in a list
2024-12-24 01:54:19 +00:00
7553ae1a57
Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token ( #32946 )
...
Fix #23703
When Gitea starts, it reads GITEA_RUNNER_REGISTRATION_TOKEN
or GITEA_RUNNER_REGISTRATION_TOKEN_FILE to add registration token.
2024-12-23 09:59:16 +00:00
89f31f79fd
Fix outdated tmpl code ( #32953 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
Some PRs were before tmpl ctx refactoring and used outdated code
2024-12-23 11:21:11 +08:00
6279646ee4
Add auto-expanding running actions step ( #30058 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Auto-expands the currently running action step.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-22 18:57:17 +00:00
afe314fa77
Use primary as button color ( #32949 )
...
* Fix #32871
* Fix #32948
2024-12-22 23:03:39 +08:00
4774151e53
Improve navbar: add "admin" tip, add "active" style ( #32927 )
...
By the way, remove all "tw-" patches and unused styles.
2024-12-20 16:38:56 +00:00
7580bd98c1
show warning on navigation if currently editing comment or title ( #32920 )
...
This PR fixes the issue https://github.com/go-gitea/gitea/issues/32223
Make the browser to show the confirm popup, as it does with other forms.
---------
Co-authored-by: Tim Wundenberg <tim@wundenbergs.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-20 23:39:19 +08:00
141d782c1a
Refactor repo-projects.ts ( #32892 )
...
- Remove jQuery
- Add types to all functions
- Tested all modified functionality
---------
Co-authored-by: Giteabot <teabot@gitea.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-19 08:37:12 +00:00