Tags: TKaxv-7S/gitea
Tags
Merge remote-tracking branch 'origin/release/v1.24' into release/v1.24
* BREAKING * Return 201 Created for CreateVariable API responses (go-gitea#34517) * Add label 'state' to metric 'gitea_users' (go-gitea#34326) * SECURITY * Upgrade security public key (go-gitea#34956) * FEATURES * Stream repo zip/tar.gz/bundle achives by default (go-gitea#35487) * Use configurable remote name for git commands (go-gitea#35172) * Send email on Workflow Run Success/Failure (go-gitea#34982) * Refactor OpenIDConnect to support SSH/FullName sync (go-gitea#34978) * Refactor repo contents API and add "contents-ext" API (go-gitea#34822) * Add support for 3D/CAD file formats preview (go-gitea#34794) * Improve instance wide ssh commit signing (go-gitea#34341) * Edit file workflow for creating a fork and proposing changes (go-gitea#34240) * Follow file symlinks in the UI to their target (go-gitea#28835) * Allow renaming/moving binary/LFS files in the UI (go-gitea#34350) * PERFORMANCE * Improve the performance when detecting the file editable (go-gitea#34653) * ENHANCEMENTS * Enable more markdown paste features in textarea editor (go-gitea#35494) * Don't store repo archives on `gitea dump` (go-gitea#35467) * Always return the relevant status information, even if no status exists. (go-gitea#35335) * Add start time on perf trace because it seems some steps haven't been recorded. (go-gitea#35282) * Remove deprecated auth sources (go-gitea#35272) * When sorting issues by nearest due date, issues without due date should be sorted ascending (go-gitea#35267) * Disable field count validation of CSV viewer (go-gitea#35228) * Add `has_code` to repository REST API (go-gitea#35214) * Display pull request in merged commit view (go-gitea#35202) * Support Basic Authentication for archive downloads (go-gitea#35087) * Add hover background to table rows in user and repo admin page (go-gitea#35072) * Partially refresh notifications list (go-gitea#35010) * Also display "recently pushed branch" alert on PR view (go-gitea#35001) * Refactor time tracker UI (go-gitea#34983) * Improve CLI commands (go-gitea#34973) * Improve project & label color picker and image scroll (go-gitea#34971) * Improve NuGet API Parity (go-gitea#21291) (go-gitea#34940) * Support getting last commit message using contents-ext API (go-gitea#34904) * Adds title on branch commit counts (go-gitea#34869) * Add "Cancel workflow run" button to Actions list page (go-gitea#34817) * Improve img lazy loading (go-gitea#34804) * Forks repository list page follow other repositories page (go-gitea#34784) * Add ff_only parameter to POST /repos/{owner}/{repo}/merge-upstream (go-gitea#34770) * Rework delete org and rename org UI (go-gitea#34762) * Improve nuget/rubygems package registries (go-gitea#34741) * Add repo file tree item link behavior (go-gitea#34730) * Add issue delete notifier (go-gitea#34592) * Improve Actions list (go-gitea#34530) * Add a default tab on repo header when migrating (go-gitea#34503) * Add post-installation redirect based on admin account status (go-gitea#34493) * Trigger 'unlabeled' event when label is Deleted from PR (go-gitea#34316) * Support annotated tags when using create release API (go-gitea#31840) * Use lfs label for lfs file rather than a long description (go-gitea#34363) * Add "View workflow file" to Actions list page (go-gitea#34538) * Move organization's visibility change to danger zone. (go-gitea#34814) * BUGFIXES * Fix different behavior in status check pattern matching with double stars (go-gitea#35474) * Fix overflow in notifications list (go-gitea#35446) * Fix package link setting can only list limited repositories (go-gitea#35394) * Extend comment treepath length (go-gitea#35389) * Fix font-size in inline code comment preview (go-gitea#35209) * Move git config/remote to gitrepo package and add global lock to resolve possible conflict when updating repository git config file (go-gitea#35151) * Change some columns from text to longtext and fix column wrong type caused by xorm (go-gitea#35141) * Redirect to a presigned URL of HEAD for HEAD requests (go-gitea#35088) * Fix git commit committer parsing and add some tests (go-gitea#35007) * Fix OCI manifest parser (go-gitea#34797) * Refactor FindOrgOptions to use enum instead of bool, fix membership visibility (go-gitea#34629) * Fix notification count positioning for variable-width elements (go-gitea#34597) * Keeping consistent between UI and API about combined commit status state and fix some bugs (go-gitea#34562) * Fix possible panic (go-gitea#34508) * Fix autofocus behavior (go-gitea#34397) * Fix Actions API (go-gitea#35204) * Fix ListWorkflowRuns OpenAPI response model. (go-gitea#35026) * Small fix in Pull Requests page (go-gitea#34612) * Fix http auth header parsing (go-gitea#34936) * Fix modal + form abuse (go-gitea#34921) * Fix PR toggle WIP (go-gitea#34920) * Fix log fmt (go-gitea#34810) * Replace stopwatch toggle with explicit start/stop actions (go-gitea#34818) * Fix some package registry problems (go-gitea#34759) * Fix RPM package download routing & missing package version count (go-gitea#34909) * Fix repo search input height (go-gitea#34330) * Fix "The sidebar of the repository file list does not have a fixed height go-gitea#34298" (go-gitea#34321) * Fix minor typos in two files #HSFDPMUW (go-gitea#34944) * Fix actions skipped commit status indicator (go-gitea#34507) * Fix job status aggregation logic (go-gitea#35000) * Fix broken OneDev migration caused by various REST API changes in OneDev 7.8.0 and later (go-gitea#35216) * Fix typo in oauth2_full_name_claim_name string (go-gitea#35199) * Fix typo in locale_en-US.ini (go-gitea#35196) * API * Exposing TimeEstimate field in the API (go-gitea#35475) * UpdateBranch API supports renaming a branch (go-gitea#35374) * Add `owner` and `parent` fields clarification to docs (go-gitea#35023) * Improve OAuth2 provider (correct Issuer, respect ENABLED) (go-gitea#34966) * Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (go-gitea#34901) * Do not mutate incoming options to SearchRepositoryByName (go-gitea#34553) * Do not mutate incoming options to RenderUserSearch and SearchUsers (go-gitea#34544) * Export repo's manual merge settings (go-gitea#34502) * Add date range filtering to commit retrieval endpoints (go-gitea#34497) * Add endpoint deleting workflow run (go-gitea#34337) * Add workflow_run api + webhook (go-gitea#33964) * REFACTOR * Move updateref and removeref to gitrepo and remove unnecessary open repository (go-gitea#35511) * Remove unused param `doer` (go-gitea#34545) * Split GetLatestCommitStatus as two functions (go-gitea#34535) * Use gitrepo.SetDefaultBranch when set default branch of wiki repository (go-gitea#33911) * Refactor editor (go-gitea#34780) * Refactor packages (go-gitea#34777) * Refactor container package (go-gitea#34877) * Refactor "change file" API (go-gitea#34855) * Rename pull request GetGitRefName to GetGitHeadRefName to prepare introducing GetGitMergeRefName (go-gitea#35093) * Move git command to git/gitcmd (go-gitea#35483) * Use db.WithTx/WithTx2 instead of TxContext when possible (go-gitea#35428) * Support Node.js 22.6 with type stripping (go-gitea#35427) * Migrate tools and configs to typescript, require node.js >= 22.18.0 (go-gitea#35421) * Check user and repo for redirects when using git via SSH transport (go-gitea#35416) * Remove the duplicated function GetTags (go-gitea#35375) * Refactor to use reflect.TypeFor (go-gitea#35370) * Deleting branch could delete broken branch which has database record but git branch is missing (go-gitea#35360) * Exit with success when already up to date (go-gitea#35312) * Split admin config settings templates to make it maintain easier (go-gitea#35294) * A small refactor to use context in the service layer (go-gitea#35179) * Refactor and update mail templates (go-gitea#35150) * Use db.WithTx/WithTx2 instead of TxContext when possible (go-gitea#35130) * Align `issue-title-buttons` with `list-header` (go-gitea#35018) * Add Notifications section in User Settings (go-gitea#35008) * Tweak placement of diff file menu (go-gitea#34999) * Refactor mail template and support preview (go-gitea#34990) * Rerun job only when run is done (go-gitea#34970) * Merge index.js (go-gitea#34963) * Refactor "delete-button" to "link-action" (go-gitea#34962) * Refactor webhook and fix feishu/lark secret (go-gitea#34961) * Exclude devtest.ts from tailwindcss (go-gitea#34935) * Refactor head navbar icons (go-gitea#34922) * Improve html escape (go-gitea#34911) * Improve tags list page (go-gitea#34898) * Improve `labels-list` rendering (go-gitea#34846) * Remove unused variable HUGO_VERSION (go-gitea#34840) * Correct migration tab name (go-gitea#34826) * Refactor template helper (go-gitea#34819) * Use `shallowRef` instead of `ref` in `.vue` files where possible (go-gitea#34813) * Use standalone function to update repository cols (go-gitea#34811) * Refactor wiki (go-gitea#34805) * Remove unnecessary duplicate code (go-gitea#34733) * Refactor embedded assets and drop unnecessary dependencies (go-gitea#34692) * Update x/crypto package and make builtin SSH use default parameters (go-gitea#34667) * Add `--color-logo`, matching the logo's primary color (go-gitea#34639) * Add openssh-keygen to rootless image (go-gitea#34625) * Replace update repository function in some places (go-gitea#34566) * Change "rejected" to "changes requested" in 3rd party PR review notification (go-gitea#34481) * Remove legacy template helper functions (go-gitea#34426) * Use run-name and evaluate workflow variables (go-gitea#34301) * Move HasWiki to repository service package (go-gitea#33912) * Move some functions from package git to gitrepo (go-gitea#33910) * TESTING * Add webhook test for push event (go-gitea#34442) * Add a webhook push test for dev branch (go-gitea#34421) * Add migrations tests (go-gitea#34456) (go-gitea#34498) * STYLE * Enforce explanation for necessary nolints and fix bugs (go-gitea#34883) * Fix remaining issues after `gopls modernize` formatting (go-gitea#34771) * Update gofumpt, add go.mod ignore directive (go-gitea#35434) * Enforce nolint scope (go-gitea#34851) * Enable gocritic `equalFold` and fix issues (go-gitea#34952) * Run `gopls modernize` on codebase (go-gitea#34751) * Upgrade `gopls` to v0.19.0, add `make fix` (go-gitea#34772) * BUILD * Use github.com/mholt/archives replace github.com/mholt/archiver (go-gitea#35390) * Update JS and PY dependencies (go-gitea#35444) * Upgrade devcontainer go version to 1.24.6 (go-gitea#35298) * Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (go-gitea#35418) * Update JS and PY deps (go-gitea#35191) * Update JS and PY dependencies (go-gitea#34391) * Update go tool dependencies (go-gitea#34845) * Update `uint8-to-base64`, remove type stub (go-gitea#34844) * Switch to `@resvg/resvg-wasm` for `generate-images` (go-gitea#35415) * Switch to pnpm (go-gitea#35274) * Update chroma to v2.20.0 (go-gitea#35220) * Migrate to urfave v3 (go-gitea#34510) * Update JS deps, regenerate SVGs (go-gitea#34640) * Upgrade dependencies (go-gitea#35384) * Bump `@github/relative-time-element` to v4.4.8 (go-gitea#34413) * Update JS dependencies (go-gitea#34951) * Upgrade orgmode to v1.8.0 (go-gitea#34721) * Raise minimum Node.js version to 20, test on 24 (go-gitea#34713) * Update JS deps (go-gitea#34701) * Upgrade htmx to 2.0.6 (go-gitea#34887) * Update eslint to v9 (go-gitea#35485) * Update js dependencies (go-gitea#35429) * Clean up npm dependencies (go-gitea#35508) * Clean up npm dependencies (go-gitea#35484) * Bump setup-node to v5 (go-gitea#35448) * MISC * Add gitignore rules to exclude LLM instruction files (go-gitea#35076) * Gitignore: Visual Studio settings folder (go-gitea#34375) * Improve language in en-US locale strings (go-gitea#35124) * Fixed all grammatical errors in locale_en-US.ini (go-gitea#35053) * Docs/fix typo and grammar in CONTRIBUTING.md (go-gitea#35024) * Improve english grammar and readability in locale_en-US.ini (go-gitea#35017)
[Fix] Trigger 'unlabeled' event when label is Deleted from PR (go-git… …ea#34316) This pull request updates the handling of issue label events in workflows to distinguish between label additions and deletions, introduces corresponding test cases, and extends the `IssuePayload` structure to support this functionality. ### Enhancements to issue label event handling: * Updated `matchIssuesEvent` in `modules/actions/workflows.go` to differentiate between "labeled" and "unlabeled" events based on whether labels were added or removed. * Added a new field, `RemovedLabels`, to the `IssuePayload` struct in `modules/structs/hook.go` to track labels that were removed during an issue event. ### Testing improvements: * Added `TestMatchIssuesEvent` in `modules/actions/workflows_test.go` to cover scenarios such as label addition, label deletion, and label clearing, ensuring the correct event type is triggered. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* SECURITY * Upgrade xz to v0.5.15 (go-gitea#35385) * BUGFIXES * Fix a compare page 404 bug when the pull request disabled (go-gitea#35441) (go-gitea#35453) * Fix bug when issue disabled, pull request number in the commit message cannot be redirected (go-gitea#35420) (go-gitea#35442) * Add author.name field to Swift Package Registry API response (go-gitea#35410) (go-gitea#35431) * Remove usernames when empty in discord webhook (go-gitea#35412) (go-gitea#35417) * Allow foreachref parser to grow its buffer (go-gitea#35365) (go-gitea#35376) * Allow deleting comment with content via API like web did (go-gitea#35346) (go-gitea#35354) * Fix atom/rss mixed error (go-gitea#35345) (go-gitea#35347) * Fix review request webhook bug (go-gitea#35339) * Remove duplicate html IDs (go-gitea#35210) (go-gitea#35325) * Fix LFS range size header response (go-gitea#35277) (go-gitea#35293) * Fix GitHub release assets URL validation (go-gitea#35287) (go-gitea#35290) * Fix token lifetime, closes go-gitea#35230 (go-gitea#35271) (go-gitea#35281) * Fix push commits comments when changing the pull request target branch (go-gitea#35386) (go-gitea#35443)
Merge remote-tracking branch 'origin/release/v1.24' into release/v1.24
* BUGFIXES * Fix a bug where lfs gc never worked. (go-gitea#35198) (go-gitea#35255) * Reload issue when sending webhook to make num comments is right. (go-gitea#35243) (go-gitea#35248) * Fix bug when review pull request commits (go-gitea#35192) (go-gitea#35246) * MISC * Vertically center "Show Resolved" (go-gitea#35211) (go-gitea#35218)
* BUGFIXES * Fix various bugs (1.24) (go-gitea#35186) * Fix migrate input box bug (go-gitea#35166) (go-gitea#35171) * Only hide dropzone when no files have been uploaded (go-gitea#35156) (go-gitea#35167) * Fix review comment/dimiss comment x reference can be refereced back (go-gitea#35094) (go-gitea#35099) * Fix submodule nil check (go-gitea#35096) (go-gitea#35098) * MISC * Don't use full-file highlight when there is a git diff textconv (go-gitea#35114) (go-gitea#35119) * Increase gap on latest commit (go-gitea#35104) (go-gitea#35113)
* BUGFIXES * Fix form property assignment edge case (go-gitea#35073) (go-gitea#35078) * Improve submodule relative path handling (go-gitea#35056) (go-gitea#35075) * Fix incorrect comment diff hunk parsing, fix github asset ID nil panic (go-gitea#35046) (go-gitea#35055) * Fix updating user visibility (go-gitea#35036) (go-gitea#35044) * Support base64-encoded agit push options (go-gitea#35037) (go-gitea#35041) * Make submodule link work with relative path (go-gitea#35034) (go-gitea#35038) * Fix bug when displaying git user avatar in commits list (go-gitea#35006) * Fix API response for swagger spec (go-gitea#35029) * Start automerge check again after the conflict check and the schedule (go-gitea#34988) (go-gitea#35002) * Fix the response format for actions/workflows (go-gitea#35009) (go-gitea#35016) * Fix repo settings and protocol log problems (go-gitea#35012) (go-gitea#35013) * Fix project images scroll (go-gitea#34971) (go-gitea#34972) * Mark old reviews as stale on agit pr updates (go-gitea#34933) (go-gitea#34965) * Fix git graph page (go-gitea#34948) (go-gitea#34949) * Don't send trigger for a pending review's comment create/update/delete (go-gitea#34928) (go-gitea#34939) * Fix some log and UI problems (go-gitea#34863) (go-gitea#34868) * Fix archive API (go-gitea#34853) (go-gitea#34857) * Ignore force pushes for changed files in a PR review (go-gitea#34837) (go-gitea#34843) * Fix SSH LFS timeout (go-gitea#34838) (go-gitea#34842) * Fix team permissions (go-gitea#34827) (go-gitea#34836) * Fix job status aggregation logic (go-gitea#34823) (go-gitea#34835) * Fix issue filter (go-gitea#34914) (go-gitea#34915) * Fix typo in pull request merge warning message text (go-gitea#34899) (go-gitea#34903) * Support the open-icon of folder (go-gitea#34168) (go-gitea#34896) * Optimize flex layout of release attachment area (go-gitea#34885) (go-gitea#34886) * Fix the issue of abnormal interface when there is no issue-item on the project page (go-gitea#34791) (go-gitea#34880) * Skip updating timestamp when sync branch (go-gitea#34875) * Fix required contexts and commit status matching bug (go-gitea#34815) (go-gitea#34829)
PreviousNext