TheFox0x7
5d65b9060b
remove context from retry downloader ( #33871 )
...
follow up to https://github.com/go-gitea/gitea/pull/33399 as I
apparently missed this one.
1 week ago
wxiaoguang
d879ec6d92
Fine tune push mirror UI ( #33866 )
1 week ago
wxiaoguang
8a0f7f0975
Fix markdown render ( #33870 )
...
Fix #33869 , some code block is moved to make it easier to test.
Added a new test
1 week ago
wxiaoguang
403775e74e
Improve issue & code search ( #33860 )
...
Each "indexer" should provide the "search modes" they support by
themselves. And we need to remove the "fuzzy" search for code.
1 week ago
GiteaBot
cd10456664
[skip ci] Updated translations via Crowdin
1 week ago
wxiaoguang
3996518ed4
Refactor cache-control ( #33861 )
...
And fix #21391
1 week ago
wxiaoguang
91610a987e
Fix various Fomantic UI and htmx problems ( #33851 )
...
Also fix #31328 , fix #33854
2 weeks ago
ChristopherHX
651ef66966
Add workflow_job webhook ( #33694 )
...
Provide external Integration information about the Queue lossly based on
https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=completed#workflow_job
Naming conflicts between GitHub & Gitea are here, Blocked => Waiting,
Waiting => Queued
Rationale Enhancement for ephemeral runners management #33570
2 weeks ago
wxiaoguang
f61f30153b
Fix file icon mapping ( #33855 )
...
Use the file extension mapping from VSCode's extensions.
Otherwise js/ts/vba/... files won't get correct icons.
2 weeks ago
wxiaoguang
608ccc32e5
Drop fomantic build ( #33845 )
...
We would never update or build fomantic again, we have forked it as a
private library long time ago.
So just put the JS and CSS files in "fomantic/build" into git. And use
"import" to use them.
Remove "form.js", rewrite "tab" component.
All source code is from official Fomantic UI build. Will apply patches
in separate PRs.
2 weeks ago
ChristopherHX
a92d5f65ce
Fix auto concurrency cancellation skips commit status updates ( #33764 )
...
* add missing commit status
* conflicts with concurrency support
Closes #33763
Co-authored-by: Giteabot <teabot@gitea.io>
2 weeks ago
wxiaoguang
e47bba046c
Fix test code ( #33829 )
...
Do not use onGiteaRun if there is no git operation
2 weeks ago
wxiaoguang
7fa47de7e9
Remove "noscript" tag from html head ( #33846 )
2 weeks ago
wxiaoguang
657239b480
Fix material icon & diff highlight ( #33844 )
2 weeks ago
wxiaoguang
c102492e5a
Fix LFS URL ( #33840 )
...
Fix #33839
2 weeks ago
wxiaoguang
34e5df6d30
Add material icons for file list ( #33837 )
2 weeks ago
Lunny Xiao
ae63568ce3
Move notifywatch to service layer ( #33825 )
...
No logic change.
2 weeks ago
GiteaBot
31ddbe1444
[skip ci] Updated translations via Crowdin
2 weeks ago
wxiaoguang
7290bfaccb
Only keep popular licenses ( #33832 )
...
Fix #33467
2 weeks ago
Vinoth Kumar
3e53b01143
Removing unwanted ui container ( #33833 )
...
when the passkey auth and register was disabled
the unwanted ui container was show
Co-authored-by: Vinoth414 <103478407+Vinoth414@users.noreply.github.com>
2 weeks ago
Dustin Firebaugh
3f1f808b9e
Full-file syntax highlighting for diff pages ( #33766 )
...
Fix #33358 , fix #21970
This adds a step in the `GitDiffForRender` that does syntax highlighting for the
entire file and then only references lines from that syntax highlighted
code. This allows things like multi-line comments to be syntax
highlighted correctly.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 weeks ago
wxiaoguang
6f13331754
Improve theme display ( #30671 )
...
Document: https://gitea.com/gitea/docs/pulls/180

2 weeks ago
TheFox0x7
4c4c56c7cd
Decouple context from repository related structs ( #33823 )
...
Calls that required context implicitly are made to pass it as argument
2 weeks ago
wxiaoguang
4ed71eb754
Improve log format ( #33814 )
2 weeks ago
wxiaoguang
6422f05a4e
Decouple diff stats query from actual diffing ( #33810 )
...
The diff stats are no longer part of the diff generation.
Use `GetDiffShortStat` instead to get the total number of changed files,
added lines, and deleted lines.
As such, `gitdiff.GetDiff` can be simplified:
It should not do more than expected.
And do not run "git diff --shortstat" for pull list. Fix #31492
2 weeks ago
Lunny Xiao
1b2dffff8e
Add global lock for migrations to make upgrade more safe with multiple replications ( #33706 )
2 weeks ago
wxiaoguang
b8c2afdc5f
Do not show passkey on http sites ( #33820 )
...
Fix #33615
2 weeks ago
Alexander McRae
582ad338d7
Use correct start and end commits for GetDiffTree ( #33816 )
...
Fixes
https://github.com/go-gitea/gitea/pull/33514#issuecomment-2702814099
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 weeks ago
wxiaoguang
ef18655215
Try to fix ACME (3rd) ( #33807 )
...
Fix #33802 , fix #32191
2 weeks ago
TheFox0x7
e7cf62f2f7
remove context from mail struct ( #33811 )
...
it can be passed by argument instead
2 weeks ago
GiteaBot
b0ee340969
[skip ci] Updated translations via Crowdin
2 weeks ago
Lunny Xiao
0453177b61
Refactor: move part of updating protected branch logic to service layer ( #33742 )
2 weeks ago
Lunny Xiao
df7b61ce9a
Update changelog for v1.23.5 ( #33797 )
...
frontport from #33780
2 weeks ago
sommerf-lf
7cdde20c73
Email option to embed images as base64 instead of link ( #32061 )
...
ref: #15081
ref: #14037
Documentation: https://gitea.com/gitea/docs/pulls/69
# Example
Content:

Result in Email:

Result with source code:
(first image is external image, 2nd is now embedded)

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 weeks ago
Kerwin Bryant
f0f10413ae
Update TypeScript types ( #33799 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 weeks ago
silverwind
95efc7b35b
Disable vet=off again ( #33794 )
...
Ref: https://github.com/go-gitea/gitea/issues/33792
To avoid slowing unit-test down.
3 weeks ago
GiteaBot
b9913d9568
[skip ci] Updated translations via Crowdin
3 weeks ago
Lunny Xiao
65bb837fa2
Upgrade golang net from 0.35.0 -> 0.36.0 ( #33795 )
3 weeks ago
TheFox0x7
ae3a18e01a
Remove context from git struct ( #33793 )
...
Argument is moved from struct init in command run, which lets us remove
context from struct.
3 weeks ago
Lunny Xiao
6c8fb8d455
Small refactor to reduce unnecessary database queries and remove duplicated functions ( #33779 )
3 weeks ago
wxiaoguang
75e85c25c1
Refactor repo-issue.ts ( #33784 )
...
And remove jQuery
3 weeks ago
wxiaoguang
ca0ce003ab
Refactor repo-settings.ts ( #33785 )
...
and remove jQuery
3 weeks ago
wxiaoguang
163bbca0eb
Refactor admin/common.ts ( #33788 )
...
Only remove jQuery
3 weeks ago
Denys Konovalov
ffb276578f
Adjust appearence of commit status webhook ( #33778 )
...
Some visual improvement for the commit status webhook message introduced
by #33320
- use short commit SHA as already done in e. g. commit webhook
- fix spacing, link text
- do not set user link for internal gitea-actions user
Before:

After:

3 weeks ago
Kerwin Bryant
14be462646
Refactor initRepoBranchTagSelector to use new init framework ( #33776 )
...
Make "initRepoBranchTagSelector" to use new init framework and fix the
abused "js-branch-tag-selector" styles
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 weeks ago
Kerwin Bryant
ad204f9c5a
Refactor buttons to use new init framework ( #33774 )
...
Make buttons to use new init framework
* "js-toggle-commit-body"
* "show-panel/hide-panel/show-modal"
* "copy-content"
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 weeks ago
Kerwin Bryant
f0f1737d4d
Refactor markup and pdf-viewer to use new init framework ( #33772 )
...
1. Add some "render-content" classes to "markup" elements when the
content is rendered
2. Use correct "markup" wrapper for "preview" (but not set that class on
the tab)
3. Remove incorrect "markup" class from LFS file view, because there is
no markup content
* "edit-diff" is also removed because it does nothing
5. Use "initPdfViewer" for PDF viewer
6. Remove incorrect "content" class from milestone markup
7. Init all ".markup" elements by new init framework
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 weeks ago
silverwind
43c8d85f19
Disable `vet` as part of `go test` ( #33662 )
...
`go vet` implicitely runs as part of `go test`, but we already have
`make lint-go-vet`, so we were essentially running it twice. This should
hopefully make `go test` slightly faster.
Ref: https://pkg.go.dev/cmd/go#hdr-Test_packages
> As part of building a test binary, go test runs go vet
3 weeks ago
wxiaoguang
216243eee2
Refactor error system ( #33771 )
...
It should not expose `util.SilentWrap` or construct it manually.
3 weeks ago
Lunny Xiao
dbed39d632
Add migrations and doctor fixes ( #33556 )
...
Fix #33535
3 weeks ago