summaryrefslogtreecommitdiffstats
path: root/.air.toml (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-10-10Fix attachment download bug (#27486)Lunny Xiao6-21/+21
2023-10-10Make actions default enabled for newly created repository if global ↵Lunny Xiao5-4/+5
configuraion enabled (#27482)
2023-10-10Fix the wrong HTTP response status code for duplicate packages (#27480)Nanguan Lin27-23/+69
fix #27470 (hope there is nothing missing 😢 ) --------- Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-10-10Increase queue length (#27555)Jason Song5-5/+5
2023-10-10Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536)Sebastian Grabowski1-1/+1
Fixes #27535
2023-10-10Remove max-width and add hide text overflow (#27359)Kyle D2-25/+12
Closes https://github.com/go-gitea/gitea/issues/27358
2023-10-09Fix `environment-to-ini` inherited key bug (#27543)wxiaoguang2-1/+28
Fix #27541 The INI package has a quirk: by default, the keys are inherited. When maintaining the keys, the newly added sub key should not be affected by the parent key.
2023-10-09Improve docs about register/run as a service (#27461)Nanguan Lin2-13/+14
As title
2023-10-09api: GetPullRequestCommits: return file list (#27483)Michael Santos5-2/+65
Fixes https://github.com/go-gitea/gitea/issues/27481 ---- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-10-09switch to using official AWS step in release nightly (#27532)techknowlogick1-8/+8
`jakejarvis/s3-sync-action@master` is out of date, and using official actions is always recommended
2023-10-09Improve file history UI and fix URL escaping bug (#27531)wxiaoguang1-7/+7
Follow #27354 Major changes: 1. The `right aligned` in `<th class="one wide right aligned">` is a no-op because it doesn't have any content 2. The `gt-df` in `<td class="sha gt-df">` was wrong, it causes UI misalignment, a table cell shouldn't be "flex" 3. Use `gt-py-0` for `gt-pt-0 gt-pb-0` 4. Simplify the layout for buttons, because the `text right aligned` is widely used and good enough, it doesn't make sense to introduce the `<div class="gt-df gt-je">` 5. Escape the `$.FileName` correctly Before: ![image](https://github.com/go-gitea/gitea/assets/2114189/eb2ced3f-1dad-4149-9ed2-aee4c0663621) After: ![image](https://github.com/go-gitea/gitea/assets/2114189/08244b61-416b-4279-b495-029bc0a96f67)
2023-10-09Improve dropdown's behavior when there is a search input in menu (#27526)wxiaoguang2-3/+9
Follow #27225 The change in #27225 is not ideal, this should be the complete fix: support the layout which Fomantic doesn't support.
2023-10-09Simplify `contrib/backport` (#27520)silverwind1-225/+12
This script was trying to be too smart, make it more straightforward and less error-prone so that i could be used by the backport bot too ideally. - Always delete the backport branch so that script is idempotent in this regard - Remove the push functionality, it's best done by the user because only they know the remote name - Remove reading docs/config.yaml, it no longer exists - Remove version detection, version is now a required argument - Remove opening the pull request with xdg-open, xdg-open is not portable - Remove continue from failed cherry pick. It's best to reset manually in this case - Clean up the console logging Example run: ``` $ go run ./contrib/backport --version v1.21 27503 * Backporting 27503 to origin/release/v1.21 as backport-27503-v1.21 * `git fetch origin main` * `git fetch origin release/v1.21` * `git branch -D backport-27503-v1.21` * `git checkout -b backport-27503-v1.21 origin/release/v1.21` * Attempting git cherry-pick 08efeb5cdc22d21b5ef12cc540727594a22062d1 * Amending commit to prepend `Backport #27503` to body Backport done! You can now push it with `git push yourremote backport-27503-v1.21` ``` --------- Co-authored-by: delvh <dev.lh@web.de>
2023-10-09Add docs section for sub-paths with the container registry (#27505)KN4CK3R1-0/+6
Fixes #21092 suggested by https://github.com/go-gitea/gitea/issues/21092#issuecomment-1749965397 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-10-09Document our new labeling strategy (#27523)delvh1-9/+12
2023-10-09[skip ci] Updated translations via CrowdinGiteaBot1-0/+71
2023-10-09Restore warning commit status (#27504)silverwind8-7/+26
Partial revert of https://github.com/go-gitea/gitea/pull/25839. This commit status is used by a number of external integrations, so I think we should not remove it (See https://github.com/go-gitea/gitea/pull/25839#issuecomment-1729002077). This is a rare case where an existing migration needed to be alterted to avoid data loss. --------- Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Giteabot <teabot@gitea.io>
2023-10-08Update labeler to match new labeling system (#27525)Denys Konovalov1-5/+19
2023-10-08Apply to become a maintainer (#27522)Gary Wang1-0/+1
2023-10-08Remove unnecessary desc for openssh key cron task (#27515)Lunny Xiao2-6/+2
2023-10-08Tweak labeler config (#27502)silverwind2-14/+0
Alternative to https://github.com/go-gitea/gitea/pull/27439. Removes a few spammy labels, and disables `sync-labels` which make it never remove labels (which is default behaviour).
2023-10-08Add hover background to wiki list page (#27507)Gary Wang1-1/+5
This patch adds a hover background for the wiki row in wiki list page, which make its behavior more close to repo's file list page. This patch also make the wiki-git-entry visible on the row is hovered instead of the cel, so users won't be confused since the 'grid' is not visible from the web page. After the patch: (when the wiki named 'Home' is hovered) ![image](https://github.com/go-gitea/gitea/assets/10095765/f6c67c41-ad54-4ce4-a3b1-8c7551396ce0)
2023-10-08[FIX] missing ctx in new_form (#27514)mohammed ahmed1-1/+1
added the ctx for the project link in new_form.tmpl --- ![Screenshot_20231008_075757](https://github.com/go-gitea/gitea/assets/64513301/8adaa287-9e55-4428-bc48-f8e6a2080624)
2023-10-08Pre-register OAuth application for tea (#27509)M Hickford6-4/+11
It remains to implement OAuth login in tea https://gitea.com/gitea/tea/issues/598 Fixes #27510
2023-10-08Fix mermaid flowchart margin issue (#27503)silverwind1-1/+3
Fixes: https://github.com/go-gitea/gitea/issues/27435 Related: https://github.com/mermaid-js/mermaid/issues/4907 <img width="924" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/494a1d2e-4c56-48d0-9843-82a5e5aa977e">
2023-10-08add a shortcut to user's profile page to admin user details (#27299)techknowlogick1-1/+5
2023-10-08Fix actionlint (#27513)silverwind1-0/+1
`make lint-actions` is currently failing because of undeclared runner name.
2023-10-08[skip ci] Updated translations via CrowdinGiteaBot1-0/+4
2023-10-08Update JS and PY dependencies (#27501)silverwind6-456/+457
- Update all JS and PY dependencies - Enable eslint `prefer-object-has-own` and autofix issue - Fix styling on citation buttons - Tested citation, mermaid, monaco, swagger, katex Citation button issue was that these buttons were not filled: <img width="136" alt="Screenshot 2023-10-07 at 14 05 08" src="https://github.com/go-gitea/gitea/assets/115237/435f0c91-28ac-46b3-bae4-dad768b29c05"> Co-authored-by: techknowlogick <techknowlogick@gitea.com>
2023-10-08Improve feed icons and feed merge text color (#27498)silverwind2-13/+17
1. Improve various feed icons 2. Fix merge message color <img width="763" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/3f5bcb23-6d90-4c63-85f2-46bd7e1c96d6"> <img width="769" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/466c37b4-e2f4-42bb-922d-b86596cdc6d0"> Fixes: https://github.com/go-gitea/gitea/issues/27495 Continues: https://github.com/go-gitea/gitea/pull/27356
2023-10-08Downgrade `go-co-op/gocron` to v1.31.1 (#27511)silverwind2-3/+3
2023-10-07Enable markdownlint `no-duplicate-header` (#27500)silverwind5-10/+9
Duplicate headers in a single Markdown document are problemlematic because the auto-generated links won't be stable. Enable this rule with no exceptions which is also the default of `markdownlint`. For example: ```md # A ## Example # B ## Example ``` Docasaurus will generated `example` and `example-1` links for this. If the first heading is altered, the link `example` will unexpectedly move to the second example heading. Ref: https://github.com/go-gitea/gitea/pull/27461#discussion_r1347987659
2023-10-07bump go-deps (#27489)techknowlogick3-160/+147
2023-10-07Apply to became a maintainer (#27491)Kerwin Bryant1-0/+1
2023-10-07change runner for binarytechknowlogick1-1/+1
2023-10-07[skip ci] Updated translations via CrowdinGiteaBot2-2/+62
2023-10-06Remove .exe suffix when cross-compiling on Windows (#27448)Sergey Zolotarev1-4/+8
When compiling GItea for Linux on Windows, you get a `gitea.exe` file as output, but because it's a Linux executable, the `.exe` extension is unnecessary. This PR adds a check for `GOOS` environment variable in addition to `OS`.
2023-10-06move re-useable workflowtechknowlogick1-3/+2
2023-10-06add checkout to disk-cleantechknowlogick1-0/+1
2023-10-06use hosted runners for nightly actions (#27485)techknowlogick2-3/+42
I'm temporarily unable to properly evaluate actuated runners, and so I'm switching back to hosted runners until I am able to focus on that again. --------- Co-authored-by: silverwind <me@silverwind.io>
2023-10-06Avoid run change title process when the title is same (#27467)yp053271-0/+4
If user only changed the target branch or just did nothing and clicked the `Save` button, you will see the change log as following: ![image](https://github.com/go-gitea/gitea/assets/18380374/d30927dd-9227-4653-8fac-b890ef0b3f88) This makes no sense, so we should check whether the title is surely changed before run the `ChangeTitle`.
2023-10-06Fix panic in storageHandler (#27446)Sergey Zolotarev1-51/+50
storageHandler() is written as a middleware but is used as an endpoint handler, and thus `next` is actually `nil`, which causes a null pointer dereference when a request URL does not match the pattern (where it calls `next.ServerHTTP()`). Example CURL command to trigger the panic: ``` curl -I "http://yourhost/gitea//avatars/a" ``` Fixes #27409 --- Note: the diff looks big but it's actually a small change - all I did was to remove the outer closure (and one level of indentation) ~and removed the HTTP method and pattern checks as they seem redundant because go-chi already does those checks~. You might want to check "Hide whitespace" when reviewing it. Alternative solution (a bit simpler): append `, misc.DummyOK` to the route declarations that utilize `storageHandler()` - this makes it return an empty response when the URL is invalid. I've tested this one and it works too. Or maybe it would be better to return a 400 error in that case (?)
2023-10-06Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419)silverwind20-269/+308
Part of https://github.com/go-gitea/gitea/issues/27097: - `gitea` theme is renamed to `gitea-light` - `arc-green` theme is renamed to `gitea-dark` - `auto` theme is renamed to `gitea-auto` I put both themes in separate CSS files, removing all colors from the base CSS. Existing users will be migrated to the new theme names. The dark theme recolor will follow in a separate PR. ## :warning: BREAKING :warning: 1. If there are existing custom themes with the names `gitea-light` or `gitea-dark`, rename them before this upgrade and update the `theme` column in the `user` table for each affected user. 2. The theme in `<html>` has moved from `class="theme-name"` to `data-theme="name"`, existing customizations that depend on should be updated. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
2023-10-06Rephrase template documentation to be more clear about .gitea/template (#27450)Andrew Imeson1-5/+8
Closes #27336 --------- Co-authored-by: silverwind <me@silverwind.io>
2023-10-06Remove redundant `len` check around loop (#27464)Eng Zer Jun4-46/+32
This pull request is a minor code cleanup. From the Go specification (https://go.dev/ref/spec#For_range): > "1. For a nil slice, the number of iterations is 0." > "3. If the map is nil, the number of iterations is 0." `len` returns 0 if the slice or map is nil (https://pkg.go.dev/builtin#len). Therefore, checking `len(v) > 0` before a loop is unnecessary. --- At the time of writing this pull request, there wasn't a lint rule that catches these issues. The closest I could find is https://staticcheck.dev/docs/checks/#S103 Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-06[skip ci] Updated translations via CrowdinGiteaBot1-26/+131
2023-10-05fix wording in SECURITY.md (#27463)Nuyube1-1/+1
2023-10-05Fix `Installation from package` doc (#27459)Nanguan Lin1-12/+15
Fix the title size and add notes to the Gitea snap package. Related issue #27424, #27423, #27422, #27420
2023-10-05Don't let API add 2 exclusive labels from same scope (#27433)JakobDev3-1/+40
Fixes #27380
2023-10-05Refactor system setting (#27000)wxiaoguang21-507/+411
This PR reduces the complexity of the system setting system. It only needs one line to introduce a new option, and the option can be used anywhere out-of-box. It is still high-performant (and more performant) because the config values are cached in the config system.