Commit Graph

5617 Commits

Author SHA1 Message Date
bircni
933ab82a16 feat: add merge queue (#40431)
Adds a merge queue for protected branches, modeled on GitHub's. Merging
into a branch that requires it queues the pull request, tests it with
the ones ahead of it in `merge_group` runs and fast-forwards the base
once the required checks pass. Failing or conflicting pull requests are
removed.

Rules configure merge method, group sizes, grouping and timeouts. Each
queue has a page at `/{owner}/{repo}/queue/{branch}`. The API can queue,
jump, look up and remove a pull request and list or clear a queue, and
webhooks and Actions get the `merge_group` event and
`enqueued`/`dequeued` actions. The merge box's command line hint now
sits beside the merge buttons like on GitHub, also outside of merge
queues.

One notable difference from GitHub is that Gitea allows merge queue to
be enabled in any repo, as opposed to GitHub which only allows it in
organization repos.

| View | Screenshot |
| --- | --- |
| Merge box, ready | <img width="440" alt="Merge box, ready"
src="https://github.com/user-attachments/assets/7d2ac984-90c4-4744-8ac8-5daf37cd96e9"
/> |
| Merge box, queued | <img width="440" alt="Merge box, queued"
src="https://github.com/user-attachments/assets/33b85cab-dfd6-405f-8ffd-283cd920e59f"
/> |
| Pull request header, queued | <img width="600" alt="Pull request
header, queued"
src="https://github.com/user-attachments/assets/d61c635b-8552-4b47-a900-e493912e8c16"
/> |
| Timeline, removal after failed checks | <img width="440"
alt="Timeline, removal after failed checks"
src="https://github.com/user-attachments/assets/bee95e79-4c76-4592-ad35-82109d9da4ed"
/> |
| Queue page | <img width="600" alt="Queue page"
src="https://github.com/user-attachments/assets/847a595a-1e13-4099-aa37-7f44018dc188"
/> |
| Pull request list, queued | <img width="600" alt="Pull request list,
queued"
src="https://github.com/user-attachments/assets/a382a143-a67f-4298-aa11-594e281d54db"
/> |
| Merge queue settings | <img width="600" alt="Merge queue settings"
src="https://github.com/user-attachments/assets/cdaf4aa5-350e-4570-a095-c91c41d03cde"
/> |

Fixes: https://github.com/go-gitea/gitea/issues/36392
Docs: https://gitea.com/gitea/docs/pulls/655

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
2026-11-26 10:50:01 +00:00
Mitrahsoft
563d8ecba5 fix(ssh): create host key directory with 0700 permissions (#40517)
The built-in SSH server created a missing host key directory with
`os.ModePerm`, leaving it readable by all users. `gitea generate ssh
host-keys` created it with 0644, which lacks the execute bit, so the
keys could not be written into it.

`InitDefaultHostKeys` now creates the directory, including missing
parents, with 0700 for both callers. Existing directories keep their
permissions.

Fixes: https://github.com/go-gitea/gitea/issues/33533

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-26 01:57:38 +00:00
Lunny Xiao
d821a986ef perf(auth): store tokens as SHA-256 and throttle last-used writes (#39933)
Store PAT, Actions task and runner tokens as SHA-256 instead of PBKDF2,
which 160-bit random tokens don't need, and drop the token caches and
`SUCCESSFUL_TOKENS_CACHE_SIZE` that PBKDF2 required. Legacy rows are
rehashed on first use. Older releases can't verify new or rehashed
tokens. A PAT use now writes only its last-used timestamp, at most once
a minute.

Benchmarks on M2 Max, SQLite, median of 5:

| Benchmark | 1 token | 128 tokens |
| :--- | ---: | ---: |
| PAT lookup | 29.4 → 30.7 µs | 2.24 ms → 29.7 µs |
| PAT lookup with last-used | 107 → 29.6 µs | 2.44 ms → 30.1 µs |
| Task lookup | 63.2 → 48.4 µs | 2.25 ms → 49.4 µs |
| Runner verify, no DB | 122 → 160 ns | 141 → 162 ns |

Docs: https://gitea.com/gitea/docs/pulls/607

Assisted-by: Codet
Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-25 15:36:10 +00:00
Christmas
a46dea6651 fix(mirror): keep repository update times out of the future (#40481)
A pull mirror copied its newest branch tip's committer date into the
repository's "Last updated" field. Commit dates are set by whoever made
the commit, so a single tip dated 2098 kept an idle mirror at the top of
Explore for decades.

Like GitHub, GitLab and Gitea's own push handling, a sync now sets the
update time to the sync time when any ref changed and leaves it
untouched otherwise.

Fixes: https://github.com/go-gitea/gitea/issues/40480

Assisted-by: Codex:GPT-6
Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-25 10:39:43 +00:00
Shudhanshu Singh
6a68717cec fix(packages): preserve CRAN metadata continuation lines (#40438)
Indented continuation lines containing colons were mistaken for new
fields, truncating CRAN package descriptions and dropping project URLs.

Continuation lines are now kept for space and tab indentation. Project
URLs are extracted from the `URL` field, which R allows to be separated
by commas or whitespace, so wrapped URL lists no longer become one
broken link and labels like `(devel)` are not linked.

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-25 03:29:44 +00:00
Lunny Xiao
7a4860734d refactor: check git exit code through an interface instead of *exec.ExitError (#40447)
`gitcmd.IsErrorExitCode` now matches any error exposing `ExitCode()
int`, which `*exec.ExitError` does, instead of asserting the concrete
type, and `Commit.HasPreviousCommit` uses it instead of its own type
assertion.

Exit code checks should not depend on how a command was run, so a
command runner other than `os/exec` can report exit codes without
touching callers. No behavior change.

Assisted-by: Codet:claude
Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-25 00:24:06 +00:00
Lunny Xiao
3ce3c1277a refactor: make git.Push take a repository instead of a local path (#40448)
`git.Push` took a raw local path and ran the command with `WithDir`. It
now takes a `RepositoryFacade` and uses `WithRepo`, like the other
repository commands, and `PushFromLocal` wraps its path with
`gitrepo.RepositoryUnmanaged`.

Unmanaged repositories resolve relative paths under the repository root,
so a relative `APP_TEMP_PATH` is now made absolute at load. It already
broke repository auto-init and would otherwise also break wiki and file
edit pushes. No other behavior change.

Assisted-by: Codet:claude
Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-25 00:18:50 +00:00
Gal Be
42d09b71d3 perf(markdown): stop building a new markdown converter for every render (#40515)
Each render built a new goldmark converter. For short texts, such as
comments, this was most of the cost. Now `render` reuses converters from
a `sync.Pool`, as the TODO in `SpecializedMarkdown` suggested. Each
converter gets the `RenderInternal` of the render. The HTML output does
not change.

| Benchmark | Before | After | Allocs |
|---|---:|---:|---|
| Comment | 85.0 µs | 46.0 µs | 502 → 207 |
| `BenchmarkMarkdownRender` | 100.5 µs | 62.8 µs | 536 → 241 |
| README | 1.51 ms | 1.50 ms | 9679 → 9384 |

No benchmark got slower (AMD EPYC 9V74, Go 1.27.4, 24 rounds).

Checks:
- `go test ./modules/markup/...` and golangci-lint pass.
- Old and new HTML matched on 20,000 random documents.
- Parallel renders pass with `-race`.

Claude was used for this change. I reviewed and tested it.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2026-11-24 16:19:41 +00:00
silverwind
b1a6cdadc8 enhance: deprecate minio storage naming, switch to rustfs on ci (#37545)
Use provider-neutral S3 naming for object storage and switch CI to
RustFS.

1. Rename `STORAGE_TYPE = minio` to `s3`, `[storage.minio]` to
`[storage.s3]`, and `MINIO_*` keys to `S3_*`. Legacy configs resolve as
before and log deprecation warnings. Explicit `S3_*` keys take
precedence in the same section.
2. Rename `migrate-storage` options to `--storage=s3` and `--s3-*`,
retaining deprecated `minio` aliases.
3. Replace MinIO in CI with RustFS `1.0.6` and rename
`TEST_MINIO_ENDPOINT` to `TEST_S3_ENDPOINT`.

Docs: https://gitea.com/gitea/docs/pulls/659

Assisted-by: Claude Code:claude-opus-5-5

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-11-24 06:13:13 +00:00
Giteabot
6824aef6fc chore(deps): update dependencies (#40499)
Update Go, JS, Python and CI dependencies, including
`@stylistic/eslint-plugin` 6 and `eslint-plugin-unicorn` 80.

- `gopkg.in/ini.v1` 1.68.0 keeps `;` and `#` in quoted `app.ini` values,
so the security test asserts the full value
- Drop stylistic rules replaced by `list-style`, which stays off as it
also enforces wrapping
- Configure new unicorn and typescript-eslint rules, drop ones
deprecated in typescript-eslint 8.64
- Remove the unused `partialOptions` from the workflow graph helpers

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-23 22:07:54 +00:00
linzch3
293b635e22 refactor: add bound limit for JSON decoders (#40465)
Fix various call sites including:

* Fixes #40457
* Fixes #40456

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: linzch3 <20380442+linzch3@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-11-22 10:18:51 +00:00
Wei-Lun Li
7d1bc574f6 perf(markup): skip mention, email and commit regexps for text without "@" (#40471)
Post-processing runs the mention, email and cross-repo commit reference
regexps on every text node of rendered markdown, issue titles and commit
messages. All three patterns need an `@`, but none starts with a literal
the regexp engine can search for, so they took most of the
post-processing time even on text without one. Checking for `@` first
skips them with the same results.

Local Go benchmarks, i7-9700 on Windows 11, base and patched run
alternately 6 times, medians:

| | before | after |
|---|---|---|
| Markdown render of README + CONTRIBUTING + 3 docs (45 KB) | 16.1 ms |
11.4 ms |
| `PostProcessCommitMessageSubject` on the last 200 commit subjects of
this repo | 5.14 ms | 3.53 ms |
| `PostProcessIssueTitle` on the same 200 lines | 3.57 ms | 2.59 ms |

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 10:06:24 +00:00
Zhaowei Gu
890effbc91 fix: drain in-flight requests on SIGTERM and close idle connections promptly (#40472)
`gitea web` derived the graceful manager's context from the CLI context,
which is canceled on the first SIGTERM, so in-flight requests were
force-closed and the terminate stage never ran.

- Detach the manager's context from that cancellation. With
`SKIP_MINWINSVC=1` on Windows, Ctrl+C now takes two.
- Close idle HTTP/2 connections at shutdown, which otherwise held every
drain until the hammer.

| SIGTERM with | main | this PR |
|---|---|---|
| no connections | 0.01s, no terminate stage | 1.03s |
| 64 MiB download in flight | cut after 10 MB | completes |
| idle HTTP/2 connection | 0.01s | 1.01s |

Regressed in: https://github.com/go-gitea/gitea/pull/35348
Carries forward https://github.com/go-gitea/gitea/pull/39533 by
@mandel-macaque.

Assisted-by: Hermes Agent:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2026-11-22 10:05:40 +00:00
silverwind
2b843af2b8 refactor(actions): use shared workflow validation from actionslib (#40475)
Gitea and the runner each implemented the same GitHub Actions rules.
Workflow structure, job kind, `runs-on`, `run-name` and job condition
checks, step display names, the output and step summary limits and the
reusable workflow depth now come from actionslib, so both enforce the
same rules. Job condition and `run-name` context errors now use GitHub's
wording with the position of the expression.

The shared rules come from https://gitea.com/gitea/actionslib/pulls/34,
released in actionslib v1.7.0. The runner side is
https://gitea.com/gitea/runner/pulls/1421.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 10:05:01 +00:00
silverwind
535a05345b enhance(markup): highlight mentions of the current user (#40474)
Render user mentions like GitHub, semibold in the surrounding text
color, and highlight mentions of the signed-in user in yellow so they
stand out in long threads.

The renderer adds `user-mention` and `current-user` classes, the styling
is pure CSS. CODEOWNERS and OAuth creator links use the same class, team
mentions are unchanged.

| Before | After |
| --- | --- |
| <img width="291" height="29" alt="before"
src="https://github.com/user-attachments/assets/6c451e7a-dfce-4e95-a386-f9aa9d28c721"
/> | <img width="291" height="29" alt="after"
src="https://github.com/user-attachments/assets/6b137c71-4692-46f2-adf8-d77ee87f3077"
/> |

Assisted-by: Claude Code:claude-opus-5-5
2026-11-21 14:39:11 +00:00
Mitrahsoft
6f8ebc0b2f fix(web): drop placeholder "avatar" tooltip from nameless avatars (#40468)
Hovering the avatar of a commit signed with the instance's signing key
showed a native browser tooltip "avatar" on top of the key fingerprint
tooltip. Avatars rendered without a name no longer get this placeholder
`title`. The signer name stays in the lock icon's tooltip.

This also removes the meaningless "avatar" tooltip from other nameless
avatars, like co-authors that only have an email. Avatars with a name
keep their `title`.

| Before | After |
| --- | --- |
| <img width="112" height="70" alt="before"
src="https://github.com/user-attachments/assets/5bc9a702-c31d-48f2-a054-d838cb5f78d3"
/> | <img width="112" height="70" alt="after"
src="https://github.com/user-attachments/assets/5696a7b9-7000-4060-95db-6ed7ef67b9a3"
/> |

Fixes: https://github.com/go-gitea/gitea/issues/22475

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-21 08:59:34 +00:00
silverwind
c9273a5a59 test: wait for indexer startup before loading fixtures (#40467)
Integration tests load fixtures after the app starts, while the indexers
still initialize and populate in the background. A slow start indexed
every fixture repo or dropped early index updates, making search tests
flaky.

The indexer startup goroutines now join a WaitGroup that only the test
harness waits on. This replaces the issue indexer's `syncReindex` flag.
Also fixes a flaky `SyncDirs` test that relied on directory listing
order.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-21 02:43:03 +00:00
Lunny Xiao
9ed44be714 feat: record and expose SHA-256 for attachments (#39954)
Release assets and other attachments had no content digest, so tools
that download release binaries could not verify them. This records one
and shows it on the releases page in a GitHub-like asset list.

- Record the SHA-256 of each attachment while it streams to storage,
migrated release assets included
- Return it as `digest: "sha256:<hex>"` in the attachment API, the field
GitHub uses for release assets
- Lay out release assets in columns for digest with copy button,
download count, size and date, stacked under the name on narrow screens
- Rename the "Downloads" section to "Assets" and show the asset count
- Attachments uploaded before this have no digest, backfilling them is
left for a follow-up

| Before | After |
| --- | --- |
| <img width="600" alt="before-desktop"
src="https://github.com/user-attachments/assets/d6f290b4-5fba-4ee2-86c0-82c0bd77f702"
/> | <img width="600" alt="after-desktop"
src="https://github.com/user-attachments/assets/11bafe88-331d-4e96-9455-87774db539d8"
/> |
| <img width="360" alt="before-mobile"
src="https://github.com/user-attachments/assets/22a83b07-ca43-4cc6-8d2a-c1fc92a32dfe"
/> | <img width="370" alt="after-mobile"
src="https://github.com/user-attachments/assets/d013b7d1-0683-4983-9864-5dbc7844f27d"
/> |

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-20 08:47:30 +00:00
silverwind
099abf5db4 test: reduce fixture setup work in Go tests (#40423)
Reduce the work Go tests spend on fixture setup, without dropping any
test or covered code. Every fixture repository reset listed and stat'ed
both trees, and many packages copied repositories or created a database
they never use.

- List the fixture repository source tree once per process
- Skip the repository copy in DB-only packages and the database in
settings-only packages
- Drop the unused repository copy and git init from migration tests
- Push LFS files last in `TestGitGeneral`, so LFS hooks don't run on
every later git command
- Link the integration test binary without DWARF

Measured locally on macOS, wall and CPU time:

| | Before | After |
|---|---|---|
| Warm fixture repository reset | 127 ms | 63 ms |
| 30 affected unit packages | 13.6 s, 72 s CPU | 10.0 s, 51 s CPU |
| Migration tests | 29.9 s, 19.1 s CPU | 13.7 s, 8.8 s CPU |
| `TestGitGeneral` | 81 s, 69 s CPU | 62 s, 54 s CPU |
| 46 API integration tests | 41.7 s | 39.0 s |
| Integration test binary relink | 8.7 s, 11.6 s CPU | 3.7 s, 5.7 s CPU
|

Assisted-by: Claude Code:claude-opus-5-5
2026-11-20 02:58:39 +00:00
bircni
b1c5fedd17 feat(pull): improve merge box, add auto_merge to PR API (#38404)
Rework the merge box after GitHub, fix auto merge edge cases, and add
`auto_merge` to the pull request API.

- Review, checks, mergeability and blocker sections that refresh while
checks run, each rendered from a `pullMergeBoxSection` instead of the
flat info item list.
- Auto merge waits out conflicts, and is canceled on close, WIP, or a
retarget or push by a non-writer.
- Bypassing branch protection needs an explicit checkbox.
- Merging follows the delete branch setting, and the timeline can
restore the deleted branch.
- Unrelated branches get their own status instead of a conflict.
- The merge API answers a merge blocked by an open dependency with 422
instead of 500.

<img width="600" alt="Merge box ready to merge"
src="https://github.com/user-attachments/assets/95dcec16-fba5-446f-81f9-5af1245c887f"
/>
<img width="600" alt="Merge box with review required and checks pending"
src="https://github.com/user-attachments/assets/640ec08e-a964-4520-85e1-5c606dfaf222"
/>

Fixes: https://github.com/go-gitea/gitea/issues/39851
Fixes: https://github.com/go-gitea/gitea/issues/24513

Assisted-by: Claude Code:claude-opus-5-5

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <me@silverwind.io>
2026-11-19 18:53:19 +00:00
Mitrahsoft
d4101fda0c enhance: support running and unknown commit status states (#40396)
External CI can report any commit status state, but only the six known
states rendered an icon, so `running` or something like `stage-1` showed
nothing. `running` is now an official state rendered with the same
spinner as Actions, and any other state gets a fallback icon. The
combined status still treats both as pending.

A state longer than the 7-character column (e.g. `in_progress`) caused a
500. It now returns 422, as does an empty state. Widening the column
instead would need a migration, happy to do that in a follow-up if
preferred.

| Before | After |
| --- | --- |
| <img width="1904" height="654" alt="before"
src="https://github.com/user-attachments/assets/811c6a4e-7b5a-4919-8d86-ec586d9f9bfb"
/> | <img width="1919" height="675" alt="after"
src="https://github.com/user-attachments/assets/a088c70d-47fe-40c5-93f7-43d1bacfa77e"
/>|

Fixes: https://github.com/go-gitea/gitea/issues/39608
2026-11-19 11:28:12 +00:00
silverwind
c376d5d8b1 feat(actions): support cache-mode (#40343)
Support
[`cache-mode`](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#cache-mode)
at workflow and job level and forward it in job payloads so runners can
enforce it. As on GitHub, a called workflow may not request more cache
access than its caller allows, otherwise the run fails as an invalid
workflow before it starts.

Enforcement needs the runner change, older runners ignore `cache-mode`.
Both can be deployed in any order.

actionslib: https://gitea.com/gitea/actionslib/pulls/33
runner: https://gitea.com/gitea/runner/pulls/1412

Assisted-by: Claude Code:claude-opus-5-5
2026-11-18 21:33:34 +00:00
Wei-Lun Li
901859a2e2 perf(highlight): reuse one chroma HTML formatter (#40418)
`RenderCodeByLexer` created a new chroma HTML formatter on every call,
so the formatter rebuilt the CSS map of the style each time. That runs
for every fenced code block in markdown (since
https://github.com/go-gitea/gitea/pull/39751) and for every line when
the diff view highlights line by line (files over 256 KiB, or after the
full-file highlight time limit). The formatter caches that map behind a
mutex and is otherwise read-only, so one shared instance is enough.
Output is unchanged.

Local Go benchmarks, i7-9700 on Windows 11, base and patched run
alternately 6 times, medians:

| | before | after |
|---|---|---|
| 1000 lines of `services/gitdiff/gitdiff.go`, one call per line | 115.3
ms, 802k allocs | 40.8 ms, 180k allocs |
| 3-line shell code block | 142 µs, 889 allocs | 66 µs, 267 allocs |
| Markdown render of README + CONTRIBUTING + 3 docs (45 KB, 31 code
blocks) | 16.0 ms, 63.8k allocs | 14.4 ms, 45.8k allocs |

This is separate from https://github.com/go-gitea/gitea/pull/40394,
which caches highlighted lines but still creates the formatter on each
call.

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-18 08:20:24 +00:00
Lazizbek Ergashev
a390f32bb4 fix(routing): remove unsynchronized write in GetFuncInfo (#40409)
`GetFuncInfo` wrote the friendly name into `funcInfoNameMap` once
without holding `funcInfoMapMu`, right before the same locked write.
Concurrent requests hitting that branch could then crash the process
with `fatal error: concurrent map writes`. This drops the unlocked
write.

Fixes: https://github.com/go-gitea/gitea/issues/40407

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2026-11-17 18:54:07 +00:00
Shivansh Garg
bf5c39b310 feat(org): add DEFAULT_TEAM_VISIBILITY instance setting (#40151)
Adds an instance-level `DEFAULT_TEAM_VISIBILITY` setting
(`private`/`limited`/`public`, default `private`) so administrators can
configure the default visibility for newly created teams when it isn't
explicitly chosen in the web form or sent via the API. Also fixes a
template bug where the "Private" radio was always force-checked on the
new-team page regardless of the actual default.

Fixes: https://github.com/go-gitea/gitea/issues/40128

## Verification

Tested all three config values (absent/`private`, `public`, `limited`)
against both the web form default and the API (`POST /orgs/{org}/teams`
without `visibility`) — in each case the correct default was applied.

## Test 1: Key absent in app.ini -> falls back to "private"

<img width="3178" height="1312" alt="image"
src="https://github.com/user-attachments/assets/7ce87372-eb3e-4f03-84da-fc21ace86eca"
/>

## Test 2: DEFAULT_TEAM_VISIBILITY = public
<img width="2802" height="1348" alt="image"
src="https://github.com/user-attachments/assets/aa1af297-9557-434d-82c6-1af253eec2ab"
/>


## Test 3: DEFAULT_TEAM_VISIBILITY = limited


<img width="2778" height="1198" alt="image"
src="https://github.com/user-attachments/assets/1e66565b-c275-454a-a7d1-66d11ef3b9ee"
/>

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-17 08:15:45 +00:00
silverwind
1424a2b7c2 fix(packages): replace blakesmith/ar with an in-tree reader (#40401)
https://github.com/blakesmith/ar is unmaintained since 2019 and panics
on a negative member size (https://pkg.go.dev/vuln/GO-2026-6905), with
no fixed version. Debian packages only need a small subset of the `ar`
format, so this reads it in-tree.

- Malformed or truncated archives are rejected with a 400 instead of a
500 or a panic
- Parsing stops after the first `control.tar` member, deb(5) allows only
one

Assisted-by: Claude Code:claude-opus-5-5
2026-11-17 03:14:40 +00:00
Mansur Akhmadi
09279b0763 fix(git): remove stale gpg lock files on startup (#40355)
keyboxd holds `public-keys.d/pubring.db.lock` for its whole lifetime,
and gpg only breaks a stale lock that names the current host and a dead
pid. After a container is re-created, signing, signed merges and auto
merge time out on the old container's lock, even after a graceful
shutdown.

At startup, Gitea now removes that lock from its default GnuPG home
without inspecting it, a running keyboxd keeps working without the file.
Admin-provided `GNUPGHOME` directories are left alone.

Fixes: https://github.com/go-gitea/gitea/issues/30781

Assisted-by: Claude Code:claude-opus-5-5

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Mansur Akhmadi <10739460+mansur-akhmadi@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
2026-11-17 02:47:17 +00:00
Giteabot
2f89c68b64 chore(deps): update dependencies (#40395)
> [!NOTE]
> This PR body was truncated due to platform limits.

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) | Type |
Update | Pending |
|---|---|---|---|---|---|---|
| [@playwright/test](https://playwright.dev)
([source](https://redirect.github.com/microsoft/playwright)) | [`1.64.1`
→
`1.65.0`](https://renovatebot.com/diffs/npm/@playwright%2ftest/1.64.1/1.65.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@playwright%2ftest/1.65.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@playwright%2ftest/1.64.1/1.65.0?slim=true)
| devDependencies | minor | `1.65.1` |
| [@stylistic/stylelint-plugin](https://stylelint-stylistic.github.io/)
([source](https://redirect.github.com/stylelint-stylistic/stylelint-stylistic))
| [`6.0.0` →
`6.0.1`](https://renovatebot.com/diffs/npm/@stylistic%2fstylelint-plugin/6.0.0/6.0.1)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@stylistic%2fstylelint-plugin/6.0.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@stylistic%2fstylelint-plugin/6.0.0/6.0.1?slim=true)
| devDependencies | patch | |
|
[@typescript-eslint/parser](https://typescript-eslint.io/packages/parser)
([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser))
| [`8.72.1` →
`8.72.2`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/8.72.1/8.72.2)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2fparser/8.72.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2fparser/8.72.1/8.72.2?slim=true)
| devDependencies | patch | |
|
[asciinema-player](https://redirect.github.com/asciinema/asciinema-player)
| [`3.17.0` →
`3.18.0`](https://renovatebot.com/diffs/npm/asciinema-player/3.17.0/3.18.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/asciinema-player/3.18.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/asciinema-player/3.17.0/3.18.0?slim=true)
| dependencies | minor | `3.18.1` |
| [colord](https://redirect.github.com/omgovich/colord) | [`2.10.0` →
`2.12.0`](https://renovatebot.com/diffs/npm/colord/2.10.0/2.12.0) |
![age](https://developer.mend.io/api/mc/badges/age/npm/colord/2.12.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/colord/2.10.0/2.12.0?slim=true)
| dependencies | minor | `2.13.0` |
|
[crowdin/github-action](https://redirect.github.com/crowdin/github-action)
| `v3.5.1` → `v3.6.0` |
![age](https://developer.mend.io/api/mc/badges/age/github-tags/crowdin%2fgithub-action/v3.6.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/crowdin%2fgithub-action/v3.5.1/v3.6.0?slim=true)
| action | minor | |
| [djlint](https://redirect.github.com/djlint/djLint)
([changelog](https://redirect.github.com/djlint/djLint/blob/master/CHANGELOG.md))
| `==1.49.9` → `==1.50.0` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/djlint/1.50.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/djlint/1.49.9/1.50.0?slim=true)
| dependency-groups | minor | `1.50.4` (+3) |
| [docker/login-action](https://redirect.github.com/docker/login-action)
| `v4.7.0` → `v4.8.0` |
![age](https://developer.mend.io/api/mc/badges/age/github-tags/docker%2flogin-action/v4.8.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/docker%2flogin-action/v4.7.0/v4.8.0?slim=true)
| action | minor | |
|
[eslint-plugin-import-x](https://redirect.github.com/un-ts/eslint-plugin-import-x)
| [`4.17.1` →
`4.18.1`](https://renovatebot.com/diffs/npm/eslint-plugin-import-x/4.17.1/4.18.1)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-import-x/4.18.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-import-x/4.17.1/4.18.1?slim=true)
| devDependencies | minor | |
| [eslint-plugin-vue](https://eslint.vuejs.org)
([source](https://redirect.github.com/vuejs/eslint-plugin-vue)) |
[`10.12.0` →
`10.12.1`](https://renovatebot.com/diffs/npm/eslint-plugin-vue/10.12.0/10.12.1)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-vue/10.12.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-vue/10.12.0/10.12.1?slim=true)
| devDependencies | patch | |
|
[github.com/blevesearch/bleve/v2](https://redirect.github.com/blevesearch/bleve)
| `v2.6.2` → `v2.6.3` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fblevesearch%2fbleve%2fv2/v2.6.3?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fblevesearch%2fbleve%2fv2/v2.6.2/v2.6.3?slim=true)
| require | patch | |
|
[github.com/dlclark/regexp2/v2](https://redirect.github.com/dlclark/regexp2)
| `v2.12.0` → `v2.13.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdlclark%2fregexp2%2fv2/v2.13.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdlclark%2fregexp2%2fv2/v2.12.0/v2.13.0?slim=true)
| require | minor | |
|
[github.com/getkin/kin-openapi](https://redirect.github.com/getkin/kin-openapi)
| `v0.152.0` → `v0.153.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgetkin%2fkin-openapi/v0.153.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgetkin%2fkin-openapi/v0.152.0/v0.153.0?slim=true)
| require | minor | |
|
[github.com/go-co-op/gocron/v2](https://redirect.github.com/go-co-op/gocron)
| `v2.23.0` → `v2.23.1` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgo-co-op%2fgocron%2fv2/v2.23.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgo-co-op%2fgocron%2fv2/v2.23.0/v2.23.1?slim=true)
| require | patch | |
|
[github.com/klauspost/compress](https://redirect.github.com/klauspost/compress)
| `v1.20.3` → `v1.20.4` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fklauspost%2fcompress/v1.20.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fklauspost%2fcompress/v1.20.3/v1.20.4?slim=true)
| require | patch | |
|
[github.com/mattn/go-sqlite3](https://redirect.github.com/mattn/go-sqlite3)
| `v1.14.52` → `v1.14.53` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fmattn%2fgo-sqlite3/v1.14.53?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fmattn%2fgo-sqlite3/v1.14.52/v1.14.53?slim=true)
| require | patch | |
|
[github.com/meilisearch/meilisearch-go](https://redirect.github.com/meilisearch/meilisearch-go)
| `v0.36.3` → `v0.37.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fmeilisearch%2fmeilisearch-go/v0.37.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fmeilisearch%2fmeilisearch-go/v0.36.3/v0.37.0?slim=true)
| require | minor | |
|
[github.com/wneessen/go-mail](https://redirect.github.com/wneessen/go-mail)
| `v0.8.1` → `v0.8.2` |
![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fwneessen%2fgo-mail/v0.8.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fwneessen%2fgo-mail/v0.8.1/v0.8.2?slim=true)
| require | patch | |
|
[gitlab.com/gitlab-org/api/client-go/v3](https://gitlab.com/gitlab-org/api/client-go)
| `v3.43.0` → `v3.48.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/gitlab.com%2fgitlab-org%2fapi%2fclient-go%2fv3/v3.48.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/gitlab.com%2fgitlab-org%2fapi%2fclient-go%2fv3/v3.43.0/v3.48.0?slim=true)
| require | minor | `v3.51.0` (+2) |
| [golang.org/x/image](https://pkg.go.dev/golang.org/x/image) |
[`v0.47.0` →
`v0.48.0`](https://cs.opensource.google/go/x/image/+/refs/tags/v0.47.0...refs/tags/v0.48.0)
|
![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fimage/v0.48.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fimage/v0.47.0/v0.48.0?slim=true)
| require | minor | |
| [golang.org/x/mod](https://pkg.go.dev/golang.org/x/mod) | [`v0.42.0` →
`v0.43.0`](https://cs.opensource.google/go/x/mod/+/refs/tags/v0.42.0...refs/tags/v0.43.0)
|
![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fmod/v0.43.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fmod/v0.42.0/v0.43.0?slim=true)
| require | minor | |
| [golang.org/x/oauth2](https://pkg.go.dev/golang.org/x/oauth2) |
[`v0.37.0` →
`v0.38.0`](https://cs.opensource.google/go/x/oauth2/+/refs/tags/v0.37.0...refs/tags/v0.38.0)
|
![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2foauth2/v0.38.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2foauth2/v0.37.0/v0.38.0?slim=true)
| require | minor | |
| mcr.microsoft.com/mssql/server | `07d7ded` → `debdc21` | | | service |
digest | |
| [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) | `v1.61.1` →
`v1.62.0` |
![age](https://developer.mend.io/api/mc/badges/age/go/modernc.org%2fsqlite/v1.62.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/go/modernc.org%2fsqlite/v1.61.1/v1.62.0?slim=true)
| require | minor | |
| [pnpm](https://pnpm.io)
([source](https://redirect.github.com/pnpm/pnpm/tree/HEAD/pnpm/npm/pnpm))
| [`12.17.0` →
`12.19.0`](https://renovatebot.com/diffs/npm/pnpm/12.17.0/12.19.0) |
![age](https://developer.mend.io/api/mc/badges/age/npm/pnpm/12.19.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pnpm/12.17.0/12.19.0?slim=true)
| packageManager | minor | `12.21.0` (+1) |
| [pnpm](https://pnpm.io)
([source](https://redirect.github.com/pnpm/pnpm/tree/HEAD/pnpm/npm/pnpm))
| [`>= 12.17.0` → `>=
12.19.0`](https://renovatebot.com/diffs/npm/pnpm/12.17.0/12.19.0) |
![age](https://developer.mend.io/api/mc/badges/age/npm/pnpm/12.19.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pnpm/12.17.0/12.19.0?slim=true)
| engines | minor | `12.21.0` (+1) |
| [redis](https://hub.docker.com/_/redis)
([source](https://redirect.github.com/redis/docker-library-redis)) |
`298e5b3` → `1f88291` | | | service | digest | |
| [renovate](https://renovatebot.com)
([source](https://redirect.github.com/renovatebot/renovate)) |
[`44.210.0` →
`44.232.0`](https://octochangelog.com/compare?repo=renovatebot%2Frenovate&from=44.210.0&to=44.232.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/renovate/44.232.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/renovate/44.210.0/44.232.0?slim=true)
| | minor | `44.245.0` (+37) |
|
[renovatebot/github-action](https://redirect.github.com/renovatebot/github-action)
| `v46.3.12` → `v46.3.13` |
![age](https://developer.mend.io/api/mc/badges/age/github-tags/renovatebot%2fgithub-action/v46.3.13?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/renovatebot%2fgithub-action/v46.3.12/v46.3.13?slim=true)
| action | patch | `v46.3.14` |
|
[rolldown-license-plugin](https://redirect.github.com/silverwind/rolldown-license-plugin)
| [`3.0.14` →
`3.0.15`](https://renovatebot.com/diffs/npm/rolldown-license-plugin/3.0.14/3.0.15)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/rolldown-license-plugin/3.0.15?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/rolldown-license-plugin/3.0.14/3.0.15?slim=true)
| dependencies | patch | |
|
[sigstore/cosign-installer](https://redirect.github.com/sigstore/cosign-installer)
| `v4.1.2` → `v4.1.3` |
![age](https://developer.mend.io/api/mc/badges/age/github-tags/sigstore%2fcosign-installer/v4.1.3?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/sigstore%2fcosign-installer/v4.1.2/v4.1.3?slim=true)
| action | patch | |
|
[spectral-cli-bundle](https://redirect.github.com/silverwind/spectral-cli-bundle)
| [`1.0.16` →
`2.0.0`](https://renovatebot.com/diffs/npm/spectral-cli-bundle/1.0.16/2.0.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/spectral-cli-bundle/2.0.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/spectral-cli-bundle/1.0.16/2.0.0?slim=true)
| devDependencies | major | |
|
[stylelint-declaration-strict-value](https://redirect.github.com/AndyOGo/stylelint-declaration-strict-value)
| [`1.12.1` →
`1.13.0`](https://renovatebot.com/diffs/npm/stylelint-declaration-strict-value/1.12.1/1.13.0)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/stylelint-declaration-strict-value/1.13.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/stylelint-declaration-strict-value/1.12.1/1.13.0?slim=true)
| devDependencies | minor | |
|
[typescript-eslint](https://typescript-eslint.io/packages/typescript-eslint)
([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint))
| [`8.72.1` →
`8.72.2`](https://renovatebot.com/diffs/npm/typescript-eslint/8.72.1/8.72.2)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/typescript-eslint/8.72.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/typescript-eslint/8.72.1/8.72.2?slim=true)
| devDependencies | patch | |
| [vite](https://vite.dev)
([source](https://redirect.github.com/vitejs/vite/tree/HEAD/packages/vite))
| [`8.3.5` →
`8.3.8`](https://renovatebot.com/diffs/npm/vite/8.3.5/8.3.8) |
![age](https://developer.mend.io/api/mc/badges/age/npm/vite/8.3.8?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/8.3.5/8.3.8?slim=true)
| dependencies | patch | |
| [vue](https://vuejs.org/)
([source](https://redirect.github.com/vuejs/core)) | [`3.5.44` →
`3.5.45`](https://renovatebot.com/diffs/npm/vue/3.5.44/3.5.45) |
![age](https://developer.mend.io/api/mc/badges/age/npm/vue/3.5.45?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vue/3.5.44/3.5.45?slim=true)
| dependencies | patch | |
|
[vue-eslint-parser](https://redirect.github.com/vuejs/vue-eslint-parser)
| [`10.4.1` →
`10.4.2`](https://renovatebot.com/diffs/npm/vue-eslint-parser/10.4.1/10.4.2)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/vue-eslint-parser/10.4.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vue-eslint-parser/10.4.1/10.4.2?slim=true)
| devDependencies | patch | |

---

### Release Notes

<details>
<summary>microsoft/playwright (@&#8203;playwright/test)</summary>

###
[`v1.65.0`](https://redirect.github.com/microsoft/playwright/releases/tag/v1.65.0)

[Compare
Source](https://redirect.github.com/microsoft/playwright/compare/v1.64.1...v1.65.0)

#### 🥟 Run tests with Bun

The test runner now runs under [Bun](https://bun.com). Bun transpiles
your TypeScript test files itself, so Playwright does not use Babel or
its compilation cache. Pass the `--bun` flag, because without it `bunx
playwright test` runs on Node.js:

```bash
bunx --bun playwright test
```

Our CI runs the test runner tests under Bun 1.4.3 on Linux. Some
features work differently under Bun:

- There is no watch mode. UI mode does not run tests again when files
change, and `--only-changed` does not follow imports.
- Bun loads modules itself, so `--tsconfig` and the JSX options in
`tsconfig.json` have no effect, and custom ESM loaders are not
supported.
- Stack traces do not include async frames, and API names do not include
the class name: `click` instead of `locator.click`. This changes some
step locations, step titles and error messages.
- Console output of a test does not get into the trace and UI mode.

#### 🚨 Reports with only failures

New
[`failures`](https://playwright.dev/docs/test-reporters#failures-reporter)
reporter prints failures and successful retries as they occur, followed
by a summary, without progress output.

New `onlyFailures` option of the HTML, JSON and JUnit reporters [keeps
only](https://playwright.dev/docs/test-reporters#report-only-failures)
tests with unexpected outcomes, flaky tests and interrupted tests:

```js
// playwright.config.ts
import { defineConfig } from '@playwright/test';

export default defineConfig({
  reporter: [
    ['failures'],
    ['html', { onlyFailures: true }],
  ],
});
```

#### 🎯 Test runner

- New built-in `-exclusive-` [test
lock](https://playwright.dev/docs/test-parallel#test-locks) runs a test
only when no other tests are running. All other tests continue to run in
parallel with each other:

  ```js
  test('restart the server', { lock: '-exclusive-' }, async () => {
    // No other test runs while this one is running.
  });
  ```

- [test.skip()](https://playwright.dev/docs/api/class-test#test-skip),
[test.fixme()](https://playwright.dev/docs/api/class-test#test-fixme),
[test.fail()](https://playwright.dev/docs/api/class-test#test-fail) and
[test.slow()](https://playwright.dev/docs/api/class-test#test-slow) now
accept only a description. It is recorded in the test annotation:

  ```js
  test('upload a file', async ({ page }) => {
    test.skip('Not implemented yet');
  });
  ```

- New `PLAYWRIGHT_TRANSFORM_CACHE_DIR` environment variable sets the
directory for transpiled test files, for example on a Linux machine
shared with other users.

#### New APIs

- New options
[`timeout`](https://playwright.dev/docs/api/class-cdpsession#cdp-session-send-option-timeout)
and
[`signal`](https://playwright.dev/docs/api/class-cdpsession#cdp-session-send-option-signal)
in
[cdpSession.send()](https://playwright.dev/docs/api/class-cdpsession#cdp-session-send).
- New
[testRun.mode()](https://playwright.dev/docs/api/class-testrun#test-run-mode)
returns the execution mode of a suite during
[reporter.preprocess()](https://playwright.dev/docs/api/class-reporter#reporter-preprocess).

#### Notable Changes ⚠️

- TypeScript class fields now follow
[`useDefineForClassFields`](https://playwright.dev/docs/test-typescript#tsconfig-class-fields)
from your `tsconfig.json`, the same as `tsc`. It is enabled for `ES2022`
and later targets, and when `target` is not specified. A field
initializer that reads a constructor parameter property now fails,
because the initializer runs first:

  ```js
  class LoginPage {
// TypeError: Cannot read properties of undefined (reading 'getByRole')
    readonly submit = this.page.getByRole('button', { name: 'Submit' });

    constructor(private readonly page: Page) {}
  }
  ```

Move the initialization to the constructor, or set
`"useDefineForClassFields": false` in your `tsconfig.json`.

- Actions such as
[locator.click()](https://playwright.dev/docs/api/class-locator#locator-click),
[locator.check()](https://playwright.dev/docs/api/class-locator#locator-check),
[locator.tap()](https://playwright.dev/docs/api/class-locator#locator-tap),
[locator.fill()](https://playwright.dev/docs/api/class-locator#locator-fill),
[locator.clear()](https://playwright.dev/docs/api/class-locator#locator-clear)
and
[locator.selectOption()](https://playwright.dev/docs/api/class-locator#locator-select-option)
now wait for the element to be [not
inert](https://playwright.dev/docs/actionability#not-inert). An action
on an element with the `inert` attribute, or inside such an element, now
times out if the element stays inert.

- A sharded run now fails with "No tests found" when no tests match
across all shards. Pass `--pass-with-no-tests` to allow this. An empty
shard still passes when other shards have tests.

- Cookie matching now follows RFC 6265. With a URL,
[browserContext.cookies()](https://playwright.dev/docs/api/class-browsercontext#browser-context-cookies)
and
[apiRequestContext.cookies()](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-cookies)
no longer return host-only cookies for subdomains or `Path=/api` cookies
for `/apiv2`, and a `Path=/foo/` cookie does not match `/foo`.
[APIRequestContext](https://playwright.dev/docs/api/class-apirequestcontext)
sends a cookie without a name as `Cookie: x` instead of `Cookie: =x`,
and stores `Set-Cookie: token` as a cookie without a name.

- Proxy credentials are no longer sent to websites. The credentials in
the
[`proxy`](https://playwright.dev/docs/api/class-browsertype#browser-type-launch-option-proxy)
option now answer only proxy challenges. To authenticate on a website,
use
[`httpCredentials`](https://playwright.dev/docs/api/class-browser#browser-new-context-option-http-credentials).

- Text that the browser does not render, such as text that is not
assigned to a slot or text directly inside a closed `<details>`, is no
longer part of accessible names and aria snapshots. This can change the
results of
[page.getByRole()](https://playwright.dev/docs/api/class-page#page-get-by-role)
with a name,
[locator.ariaSnapshot()](https://playwright.dev/docs/api/class-locator#locator-aria-snapshot)
and
[expect(locator).toMatchAriaSnapshot()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-match-aria-snapshot).

- String and `URLSearchParams` values of the `params` option in
[APIRequestContext](https://playwright.dev/docs/api/class-apirequestcontext)
requests are now appended to the query that the URL already has, instead
of replacing it.

- `.css`, `.less` and `.scss` imports in test files now load as empty
modules instead of being removed, so the imported file must exist.

- The blob reporter again deletes the content of its output directory
before it writes the report. Playwright 1.64 kept reports with other
names.

- Test locations of imported calls such as `test(` in CommonJS output
now point to the start of the callee, for example `a.spec.ts:3:7`
instead of `a.spec.ts:3:11`. This is the same as in ESM.

#### Announcements

- ⚠️ Playwright no longer tests on Node.js 20. Use Node.js 22, 24 or 26,
as listed in the [system
requirements](https://playwright.dev/docs/intro#system-requirements).
- 🐳 [Docker images](https://playwright.dev/docs/docker) now include
Node.js 26 instead of Node.js 24, and the latest patch of Chromium on
the same branch.

#### Browser Versions

- Chromium 158.0.8127.18
- Mozilla Firefox 159.0
- WebKit 27.2

This version was also tested against the following stable channels:

- Google Chrome 157
- Microsoft Edge 156

</details>

<details>
<summary>stylelint-stylistic/stylelint-stylistic
(@&#8203;stylistic/stylelint-plugin)</summary>

###
[`v6.0.1`](https://redirect.github.com/stylelint-stylistic/stylelint-stylistic/blob/HEAD/CHANGELOG.md#601--20261106)

[Compare
Source](https://redirect.github.com/stylelint-stylistic/stylelint-stylistic/compare/v6.0.0...v6.0.1)

##### Fixed

- The `block-closing-brace-empty-line-before` rule, with the values
`never` and `except: ["after-closing-brace"]`, now requires an empty
line before the closing brace of a block if that block ends
with a nested block, even if there is a declaration earlier
in that block. Previously, this setting incorrectly required the removal
of the empty line (see
[#&#8203;750](https://redirect.github.com/stylelint-stylistic/stylelint-stylistic/issues/750)).

</details>

<details>
<summary>typescript-eslint/typescript-eslint
(@&#8203;typescript-eslint/parser)</summary>

###
[`v8.72.2`](https://redirect.github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#8722-2026-11-09)

[Compare
Source](https://redirect.github.com/typescript-eslint/typescript-eslint/compare/v8.72.1...v8.72.2)

This was a version bump only for parser to align it with other projects,
there were no code changes.

See [GitHub
Releases](https://redirect.github.com/typescript-eslint/typescript-eslint/releases/tag/v8.72.2)
for more information.

You can read about our [versioning
strategy](https://typescript-eslint.io/users/versioning) and
[releases](https://typescript-eslint.io/users/releases) on our website.

</details>

<details>
<summary>asciinema/asciinema-player (asciinema-player)</summary>

###
[`v3.18.0`](https://redirect.github.com/asciinema/asciinema-player/releases/tag/v3.18.0):
3.18.0

[Compare
Source](https://redirect.github.com/asciinema/asciinema-player/compare/v3.17.0...v3.18.0)

This release brings smoother playback progress and more accurate
terminal emulation:

- Smooth progress bar animation synchronized with playback speed,
pauses, seeking, and buffering.
- Fixed column alignment of the sextile symbol (⚹).
- Improved handling of unset options from JSON-based integrations:
`null` values are now treated as absent options.
- Clearer, synchronous errors for invalid `speed` and `markers` options.
- Upgraded the terminal emulator from avt 0.16.0 to 0.20.0, bringing
faster parsing and printing, improved cursor positioning during reflow,
more accurate alternate screen resizing, and fixes for wide-character
repetition and insertion.
- Updated dependencies and expanded regression coverage for playback,
streaming, and terminal rendering.

#### Compatibility notes

- `speed` must be a finite, positive number. Numeric strings are
rejected.
- `markers` must be an array of finite numbers or `[time, label]` pairs,
with a finite numeric time and a string label. Invalid values now throw
during player creation.
- Building from source now requires Rust 1.86 or newer. The Nix
development shell provides the toolchain and WASM target.

</details>

<details>
<summary>omgovich/colord (colord)</summary>

###
[`v2.12.0`](https://redirect.github.com/omgovich/colord/blob/HEAD/CHANGELOG.md#2120)

[Compare
Source](https://redirect.github.com/omgovich/colord/compare/v2.11.0...v2.12.0)

##### Minor Changes

- Parse numbers in scientific notation (`rgb(1e2 .5e1 0 / 25e-2)`), as
the CSS spec allows

##### Patch Changes

- Fix: Parse CSS angle units case-insensitively, so `hsl(0.25TURN 50%
50%)` means 90 degrees instead of 0.25 ❤️
[@&#8203;blueDaydreaming725](https://redirect.github.com/blueDaydreaming725)
- Fix: Keep exact colors at the `mix()` endpoints and when only alpha
differs, so a mixture into white no longer turns green after `.darken()`
❤️
[@&#8203;feritcemkahraman](https://redirect.github.com/feritcemkahraman)
- Fix: Type plugin default imports correctly in ES modules under
TypeScript's `node16` and `nodenext` resolution

###
[`v2.11.0`](https://redirect.github.com/omgovich/colord/blob/HEAD/CHANGELOG.md#2110)

[Compare
Source](https://redirect.github.com/omgovich/colord/compare/v2.10.1...v2.11.0)

##### Minor Changes

- New `oklab` and `oklch` plugins to parse and convert OKLab and OKLCH
colors (CSS Color 4)

###
[`v2.10.1`](https://redirect.github.com/omgovich/colord/blob/HEAD/CHANGELOG.md#2101)

[Compare
Source](b10c2f9445...v2.10.1)

##### Patch Changes

- Fix: Read the alpha byte of a HEX color exactly, so `#cc88` no longer
comes back as `#cccc8887` ❤️
[@&#8203;spokodev](https://redirect.github.com/spokodev)
- Fix: Stop `minify` from turning down an alpha hex that holds the color
exactly, and from returning nothing at all when every notation is
switched off

</details>

<details>
<summary>crowdin/github-action</summary>

###
[`v3.6.0`](https://redirect.github.com/crowdin/github-action/releases/tag/v3.6.0)

[Compare
Source](https://redirect.github.com/crowdin/github-action/compare/v3.5.1...v3.6.0)

#### What's Changed

- CLI
[5.6.0](https://redirect.github.com/crowdin/crowdin-cli/releases/tag/5.6.0)
by [@&#8203;andrii-bodnar](https://redirect.github.com/andrii-bodnar)

**Full Changelog**:
<https://github.com/crowdin/github-action/compare/v3.5.1...v3.6.0>

</details>

<details>
<summary>djlint/djLint (djlint)</summary>

###
[`v1.50.0`](https://redirect.github.com/djlint/djLint/blob/HEAD/CHANGELOG.md#1500---2026-11-11)

[Compare
Source](https://redirect.github.com/djlint/djLint/compare/v1.49.10...v1.50.0)

##### Bug fixes

- With Click 8.5.1 or newer, `djlint --help` no longer lists a blank
`SRC ...` row under "Other". The files to check are still shown in the
usage line.
- A template that is not valid UTF-8, or that djLint isn't allowed to
read or write, no longer aborts the run with a traceback and a request
to report a bug. djLint names the file and the reason, checks the rest
and still exits `2`, because that file went unchecked. `--github-output`
adds an error annotation on the file, and `--sarif` reports it as a
notification on a run marked as not successful.
- A configuration file djLint can't read, such as a `pyproject.toml`,
`djlint.toml` or `.djlintrc` with a syntax error or a file named by
`--configuration`, is now a usage error that exits `2`. djLint used to
print a red line and check the templates against its defaults, so the
run could pass. The same goes for a number setting with a value that
isn't a number, such as `max_line_length = "wide"`, and for a
`.djlint_rules.yaml` that isn't valid YAML or doesn't hold a list of
rules, which crashed with a traceback. An empty `.djlint_rules.yaml` no
longer crashes. In the Python API, `load_config` raises
`click.UsageError` for these.
- Ctrl+C exits `130`, as shells report an interrupted command, rather
than `1`, which means djLint found something. The same goes for `djlint
--lsp`.

###
[`v1.49.10`](https://redirect.github.com/djlint/djLint/blob/HEAD/CHANGELOG.md#14910---2026-11-07)

[Compare
Source](https://redirect.github.com/djlint/djLint/compare/v1.49.9...v1.49.10)

##### Packaging

- Ship a `py.typed` marker, so type checkers read the annotations of
`djlint.api`.
- Importing `djlint.api` no longer builds the command line, which takes
a little off the start of editors and other programs that use djLint
from Python. The command line moved out of the `djlint` package itself,
which still hands out `main`, `process` and `process_stdin` when they
are asked for.

</details>

<details>
<summary>docker/login-action</summary>

###
[`v4.8.0`](https://redirect.github.com/docker/login-action/releases/tag/v4.8.0)

[Compare
Source](https://redirect.github.com/docker/login-action/compare/v4.7.0...v4.8.0)

- Set Docker Hub OIDC token lifetime default to 1 hour by
[@&#8203;crazy-max](https://redirect.github.com/crazy-max) in
[#&#8203;1070](https://redirect.github.com/docker/login-action/pull/1070)
- Bump
[@&#8203;aws-sdk/client-ecr](https://redirect.github.com/aws-sdk/client-ecr)
and
[@&#8203;aws-sdk/client-ecr-public](https://redirect.github.com/aws-sdk/client-ecr-public)
to 3.1161.0 in
[#&#8203;1103](https://redirect.github.com/docker/login-action/pull/1103)
- Bump
[@&#8203;docker/actions-toolkit](https://redirect.github.com/docker/actions-toolkit)
from 0.107.0 to 0.109.0 in
[#&#8203;1105](https://redirect.github.com/docker/login-action/pull/1105)
- Bump vite from 7.3.6 to 7.3.7 in
[#&#8203;1101](https://redirect.github.com/docker/login-action/pull/1101)

**Full Changelog**:
<https://github.com/docker/login-action/compare/v4.7.0...v4.8.0>

</details>

<details>
<summary>un-ts/eslint-plugin-import-x (eslint-plugin-import-x)</summary>

###
[`v4.18.1`](https://redirect.github.com/un-ts/eslint-plugin-import-x/blob/HEAD/CHANGELOG.md#4181)

[Compare
Source](https://redirect.github.com/un-ts/eslint-plugin-import-x/compare/v4.18.0...v4.18.1)

##### Patch Changes

-
[#&#8203;599](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/599)
[`d9c8a4e`](d9c8a4efc6)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(core): don't load the optional `@typescript-eslint/utils` peer at
runtime, so the plugin loads again without it

-
[#&#8203;604](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/604)
[`28779e0`](28779e094c)
Thanks [@&#8203;gilbarbara](https://redirect.github.com/gilbarbara)! -
fix(extensions): stop requiring a `js` alias on extensionless imports
that resolve to a file whose extension is `never`, such as `.ts` with `{
js: 'always', ts: 'never' }`.

-
[#&#8203;600](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/600)
[`6172d1d`](6172d1dc68)
Thanks [@&#8203;thekhegay](https://redirect.github.com/thekhegay)! -
fix(first): the autofix puts imports above the decorators of `@dec()
export class` and on their own line when they have no semicolon, it
could leave code that doesn't parse in both cases

###
[`v4.18.0`](https://redirect.github.com/un-ts/eslint-plugin-import-x/blob/HEAD/CHANGELOG.md#4180)

[Compare
Source](https://redirect.github.com/un-ts/eslint-plugin-import-x/compare/v4.17.1...v4.18.0)

##### Minor Changes

-
[#&#8203;520](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/520)
[`802441c`](802441c40e)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- Add a `checkSelfReference` option to the `extensions` rule. When set,
a package's import of its own subpath export (e.g. `pkg/sub` from inside
`pkg`) is treated as a package import, so `ignorePackages` applies to
it.

-
[#&#8203;403](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/403)
[`f4d0a4b`](f4d0a4b592)
Thanks [@&#8203;Zamiell](https://redirect.github.com/Zamiell)! -
`extensions`: when an import has no extension and cannot be resolved
as-is, try the extensions configured as `always` in `pattern` and use
the unique one that resolves for the fix or suggestion. If several
resolve, report the missing extension without guessing. When no
extension can be determined automatically, explain that in the `missing`
message instead of only reporting a bare missing extension.

-
[#&#8203;572](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/572)
[`fc17206`](fc17206adc)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- feat(no-duplicates): add a `whitelist` option listing entry points
that share one declaration file but are different modules, such as
`svelte` and `svelte/easing`

-
[#&#8203;504](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/504)
[`f10dcc4`](f10dcc4a82)
Thanks [@&#8203;morgan-coded](https://redirect.github.com/morgan-coded)!
- Add a `"top"` mode to the `order` rule's `warnOnUnassignedImports`
option for requiring no-specifier ESM imports before assigned imports.

-
[#&#8203;502](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/502)
[`9c85ced`](9c85ced6cb)
Thanks [@&#8203;SukkaW](https://redirect.github.com/SukkaW)! - Rewrite
the module analysis core for performance boosts. The speedup depends on
your project, and we expect no performance regression in any setup — if
you measure one, please report it.

Rules like `named`, `default`, `namespace`, `no-cycle`, `no-deprecated`,
and many more, need to know what the modules you import actually export.
Until now, answering that meant running the full ESLint parser over
every one of those files — including everything you pull in from
`node_modules`.

  That core has been rewritten:

- Plain JavaScript is now read with
[`es-module-lexer`](https://redirect.github.com/guybedford/es-module-lexer)
instead of being parsed. Anything it can't read faithfully — TypeScript,
JSX, Flow — still goes through the ESLint parser exactly as before.
- Analysis is lazy. Much of the work now happens when a rule actually
asks for it, so enabling one rule no longer pays for what the others
would have needed.
  - Results are cached and shared between rules.

**There are no breaking changes: no configuration changes are needed,
and no behavior changes are intended.** Every rule should report exactly
what it reported before, with one known exception: an imported plain
JavaScript file that has a syntax error no longer gets a "Parse errors
in imported module" report. ESLint still reports the syntax error when
it lints that file itself. The full test suite passes, but there could
be some edge cases. If a rule starts reporting something it didn't
before, or stops reporting something it should, please open an issue
with a minimum reproduction — bug reports on this are very welcome.

-
[#&#8203;456](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/456)
[`7b78aae`](7b78aae85b)
Thanks [@&#8203;43081j](https://redirect.github.com/43081j)! - Add four
barrel file detection rules ported from `eslint-plugin-barrel-files`:
`avoid-barrel-files`, `avoid-importing-barrel-files`,
`avoid-namespace-import` and `avoid-re-export-all`.

`avoid-importing-barrel-files` checks every runtime way a module can be
referenced — static imports, re-exports (`export … from`, `export *
from`, `export * as ns from`), dynamic `import()` and CommonJS
`require()` — with type-only statements exempt.

-
[#&#8203;157](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/157)
[`89cfe42`](89cfe424d1)
Thanks [@&#8203;Zamiell](https://redirect.github.com/Zamiell)! -
feat(no-rename-default): accept names derived from bare package paths
and add a `whitelist` option for modules that mangle their default
export names

##### Patch Changes

-
[#&#8203;562](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/562)
[`7cbe683`](7cbe683d22)
Thanks [@&#8203;JounQin](https://redirect.github.com/JounQin)! -
perf(avoid-importing-barrel-files): skip the surface parse for a
dependency that cannot be a barrel

The rule sizes the runtime module graph behind every imported target,
and a
  target only becomes a candidate once its export count passes
`amountOfExportsToConsiderModuleAsBarrel`. A lexer-analyzed module
already
reports its export entries, so a count at or below the threshold settles
the
question without producing the exact export/declaration surface — one
parse
  saved per small plain-JS dependency.

Anything es-module-lexer does not read faithfully still goes through the
parser,
and a module whose source declares a default export is never ruled out:
the
properties of `export default { … }` are exports no entry count can see
(a
  `default` that `esModuleInterop` synthesizes does not count).

A declarator that binds no name — `export const {} = obj`, `export const
{ a: {} } = obj` — is no longer counted as an export by the barrel
surface: it
exports nothing, and counting it made the surface disagree with the
lexer's
  entry count.

-
[#&#8203;568](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/568)
[`225a5aa`](225a5aae4e)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- Fix `no-extraneous-dependencies` telling you to add a package that is
already in `devDependencies` or `optionalDependencies` when its import
resolves through `@types/*`

-
[#&#8203;579](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/579)
[`db16385`](db16385a7f)
Thanks [@&#8203;thekhegay](https://redirect.github.com/thekhegay)! -
fix(core): keep the size of `settings` out of module and resolver cache
keys

Every key held the full `stableHash` text of `settings`, `parserOptions`
and the parser. One large value in shared `settings`, like a custom
alphabet from `eslint-plugin-perfectionist`, was copied into each key on
every resolve, so `no-cycle` and any other rule that resolves imports
could run out of memory. Keys now hold a short id per distinct hash.

-
[#&#8203;309](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/309)
[`4b9ea02`](4b9ea02026)
Thanks [@&#8203;remcohaszing](https://redirect.github.com/remcohaszing)!
- Allow packages to import themselves in
`import-x/no-extraneous-dependencies` when the `exports` field is
defined in `package.json`; importing a package's own name without
`exports` is reported by the new `selfImport` message.

-
[#&#8203;565](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/565)
[`3d0f5a9`](3d0f5a9158)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(namespace, no-deprecated): don't report members of a parameter
that shadows a namespace import when the namespace is also used in the
same scope, e.g. in a type annotation

-
[#&#8203;539](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/539)
[`bb7b18b`](bb7b18b788)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- chore(deps): upgrade `es-module-lexer` from v2 to v3. The v3 API is a
complete redesign using discriminated union types (`StaticImport |
DynamicImport | ImportMetaRef` for imports, `DirectExport | Reexport |
ReexportAll` for exports) replacing numeric `d` fields and short
property names. The lexer route now resolves `export { x }` where `x`
comes from a non-namespace import as a reexport rather than an own
export, which is more semantically accurate.

-
[#&#8203;566](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/566)
[`4c66c87`](4c66c87332)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(export): don't report a namespace that only declares types as a
duplicate of a value with the same name

-
[#&#8203;536](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/536)
[`db674b5`](db674b5aed)
Thanks [@&#8203;SukkaW](https://redirect.github.com/SukkaW)! -
fix(export): check types and values separately

`export type * from` only re-exports types, so it no longer conflicts
with a value export of the same name, and a type reached through `export
*` no longer conflicts with a value. Duplicate types among re-exports
are now reported, as are a type-only export and a value export of the
same name, and ambient function overloads that clash with another
export. String-literal export names such as `"type:Foo"` are no longer
mistaken for type exports. Fixes
[#&#8203;414](https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/414).

-
[#&#8203;594](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/594)
[`0c82c7e`](0c82c7e0f8)
Thanks [@&#8203;i1stG](https://redirect.github.com/i1stG)! -
fix(extensions): resolve directory imports to their index file in
autofixes and suggestions, and only offer rewrites of resolved imports
that point back to the same file.

-
[#&#8203;571](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/571)
[`2bc321d`](2bc321dd56)
Thanks [@&#8203;TonyTech404](https://redirect.github.com/TonyTech404)! -
Fix the `extensions` rule treating an extension alias as a missing
extension. An import such as `./foo.js` that the resolver maps to
`foo.ts` now keeps its own extension instead of being reported as
missing `ts` and autofixed to `./foo.js.ts`. The `pattern` extension
inference also recognizes an extension alias, so an extensionless
`./foo` that resolves that way is fixed to `./foo.js`. The inference
only accepts a candidate that resolves to the same file, and an
ambiguous result is reported without a fix. Type-only imports and
exports (including inline `type` specifiers) are ignored before the
extension branches, so an aliased `.js` specifier is preserved when
`checkTypeImports` is off.

-
[#&#8203;512](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/512)
[`42dba04`](42dba0465f)
Thanks [@&#8203;LeulTew](https://redirect.github.com/LeulTew)! -
fix(extensions): honor `pathGroupOverrides` when no `pattern`,
`ignorePackages`, or `checkTypeImports` option is provided.

-
[#&#8203;575](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/575)
[`27112d6`](27112d671a)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix: keep trailing comments and line-scoped directives with their
targets. `first` inserts moved imports right after the
directive/statement, before any trailing comment, and withholds the
autofix for the whole group when a moved import has comments.
`newline-after-import` inserts the blank before a single-line trailing
comment (or after a multi-line one), so third-party directives such as
`prettier-ignore` keep their target. Both rules share the
`getTrailingComments` util.

-
[#&#8203;555](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/555)
[`27876f2`](27876f2496)
Thanks [@&#8203;JounQin](https://redirect.github.com/JounQin)! -
perf(core): memoize `getExportKind` per module and name

  Rules ask for an export kind once per imported specifier and once per
namespace member access. Without a memo, every lookup re-walks all
`export *`
paths and re-resolves each target; on a 100-star barrel, 2,000 namespace
member accesses took \~5.7 s instead of \~0.1 s. Answers are cached per
  `(module, name, typeOnly)`, so the type-only and value answers stay
  independent.

-
[#&#8203;519](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/519)
[`f6a66a0`](f6a66a01b5)
Thanks [@&#8203;Cherry](https://redirect.github.com/Cherry)! - perf:
cache legacy resolver lookups per directory instead of re-resolving the
resolver package on every import resolution.

-
[#&#8203;570](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/570)
[`7254048`](72540485d1)
Thanks [@&#8203;devon-scythe](https://redirect.github.com/devon-scythe)!
- fix: support minimatch v9/v10/v11 and drop makeRe

minimatch v11 is the only release line with the fix for
GHSA-g3hv-75wg-m249.
It removes `makeRe()`, so `no-internal-modules` now matches its `allow`
and
  `forbid` globs with `Minimatch#match`.

-
[#&#8203;535](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/535)
[`66632ec`](66632ec873)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(core): send a `.js` file to the AST route when es-module-lexer
cannot read one of its exports. On the lexer fast path, an export the
lexer does not read was dropped from the module's export set as soon as
the file had any export it did read, so `hasExport`/`getExportNames` —
and `named`, `namespace`, `default`, `no-named-as-default` with them —
reported the name as missing. The lexer route now keeps only the
declaration heads whose exported names are read faithfully by
es-module-lexer v3 (`default`, `{`, `*`, `function`, `class`, `const`,
`let`, `var`) and bails on every unrecognised head as a conservative
fallback, including `module`, `using`, `await using`, `@dec class`,
`abstract class`, `declare`, `enum`, `const enum`, `namespace`, and
`interface` (v3 reads those, but they are not yet in the whitelist).

-
[#&#8203;534](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/534)
[`595f2d7`](595f2d730f)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(module-visitor): treat `import x = require('y')` as a module
reference, so every rule built on `moduleVisitor` (`no-unresolved`,
`no-cycle`, `extensions`, `no-extraneous-dependencies`,
`no-restricted-paths`, `no-absolute-path`, …) sees the specifier.
`export import x = require('y')` was missed too, because its
`ExportNamedDeclaration` has a `null` source. `no-cycle` and
`avoid-importing-barrel-files` keep ignoring the type-only form, `import
type x = require('y')`

-
[#&#8203;556](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/556)
[`19ff6c5`](19ff6c5006)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(namespace): report member access in decorator expressions by
walking up to the enclosing module scope.

-
[#&#8203;567](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/567)
[`b2afa70`](b2afa70f83)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(namespace): don't report a heritage clause that names a type from
a module resolved to JavaScript, which has no types to check against.

-
[#&#8203;526](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/526)
[`8f4f6b9`](8f4f6b9922)
Thanks [@&#8203;JounQin](https://redirect.github.com/JounQin)! - fix:
count `export * as ns from '…'` as a runtime dependency in the module
analysis core

`export * as ns from 'x'` loads `x` at runtime, but both `ModuleInfo`
construction paths omitted the edge, so graph traversal — and
`avoid-importing-barrel-files` in particular — could undercount the
modules an import pulls in. The namespace export metadata is unchanged,
and `export type * as ns from` stays type-only. Fixes
[#&#8203;525](https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/525).

-
[#&#8203;541](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/541)
[`bbd0026`](bbd0026366)
Thanks [@&#8203;MFA-G](https://redirect.github.com/MFA-G)! -
fix(namespace): report members exported only as types

A name exported only as a type (`export type Foo`, `export interface
Foo`, `export type { Foo }`, `export type * from`) is erased at runtime,
so accessing it as a member of an imported namespace (`ns.Foo`, `const {
Foo } = ns`, `<ns.Foo />`) is now reported. Classes, enums and names
that are both a type and a value are still accepted, and unresolvable
names still fail open. Fixes
[#&#8203;540](https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/540).

-
[#&#8203;543](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/543)
[`35fc9bf`](35fc9bf6f3)
Thanks [@&#8203;thekhegay](https://redirect.github.com/thekhegay)! -
fix(newline-after-import): ignore comments between two imports when
`considerComments` is enabled, matching `eslint-plugin-import`.

-
[#&#8203;577](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/577)
[`5169813`](5169813686)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(newline-after-import): treat a comment on the import's own line as
part of the import

With `considerComments`, a trailing comment such as `import a from 'a'
// why`
was taken as the comment after the import, so the rule reported even
with an
empty line before the next statement. The autofix also inserted the new
lines
between the import and its trailing comment, moving the comment onto its
own
  line. Both now skip comments that start on the statement's last line.

The fix is withheld when any trailing comment is a line-scoped directive
(`eslint-disable-next-line`, `@ts-ignore`, `@ts-expect-error`), so the
directive
keeps its target, and comments inside the following statement no longer
satisfy
  the blank-line check.

-
[#&#8203;591](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/591)
[`65ea15c`](65ea15c320)
Thanks
[@&#8203;SwastikTripathi](https://redirect.github.com/SwastikTripathi)!
- fix(no-absolute-path): prefix `./` when the fixed path starts with a
dot directory such as `.config/`, which would otherwise turn into a
package import

-
[#&#8203;507](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/507)
[`aa1071d`](aa1071d6ef)
Thanks [@&#8203;BridgeAR](https://redirect.github.com/BridgeAR)! -
Reduce `no-cycle` CPU usage for converging dependency graphs.

-
[#&#8203;518](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/518)
[`c45cfb9`](c45cfb9757)
Thanks
[@&#8203;wimvanschandevijl](https://redirect.github.com/wimvanschandevijl)!
- fix(no-cycle): `allowUnsafeDynamicCyclicDependency` no longer hides
static-only cycles that happen to sit in the same module as an unrelated
dynamic import

Previously, `no-cycle`'s traversal bailed out of a module's **entire**
remaining import list as soon as it found one path where any declaration
was dynamic - `return` rather than `continue` inside the loop over
`m.imports`. That meant:

- a purely static cycle declared *after* an unrelated dynamic import
earlier in the same file went unreported, and
- a path imported both statically and dynamically (the static
declaration on its own closing a real cycle) was skipped entirely,
because "any declaration to this path is dynamic" discarded the static
declaration too.

Both are now handled per-declaration: only the dynamic declarations for
a path are dropped when `allowUnsafeDynamicCyclicDependency` is set, and
only that one path is skipped when nothing traversable remains - the
module's other, unrelated import paths (and any static declaration to
the very same path) are still checked. See
[#&#8203;515](https://redirect.github.com/un-ts/eslint-plugin-import-x/issues/515)
for the repro that found this.

-
[#&#8203;538](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/538)
[`b6a674b`](b6a674b235)
Thanks [@&#8203;b84330808](https://redirect.github.com/b84330808)! -
fix(no-cycle): report cycles through side-effect imports such as `import
'./foo'` and `import {} from './foo'`. They have no specifiers, so they
were skipped as if they were type-only imports. The unambiguous-module
prefilter also recognizes them now, so a file whose only module syntax
is a side-effect import is analyzed on the AST route too, as it already
was on the lexer route

-
[#&#8203;585](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/585)
[`8777312`](8777312895)
Thanks [@&#8203;thekhegay](https://redirect.github.com/thekhegay)! -
fix(no-duplicates): do not treat commas inside comments as specifier
separators in the autofix

-
[#&#8203;581](https://redirect.github.com/un-ts/eslint-plugin-import-x/pull/581)
[`76e97db`](76e97db501)
Thanks [@&#8203;thekhegay](https://redirect.github.com/thekhegay)! -
fix(no-duplicates): imports of one path with different attributes are
not duplicates, and the autofix no longer drops an attribute, mistakes
the braces of `with {...}` for the braces of the s

> [!IMPORTANT]
> ✂ PR body was truncated to here.


</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - Between 12:00 AM and 03:59 AM, only on Monday (`* 0-3 * * 1`)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend Renovate
CLI](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMTAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIxMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-16 15:38:49 +00:00
Mitrahsoft
a006a8ae9c fix(markup): render same-repo PR URLs as !N with external issue tracker (#40344)
When a repository uses an external issue tracker, `#N` links to the
external tracker and local pull requests are referenced as `!N`, as
merge messages already do for the title and `Merge pull request !N`. But
full pull request URLs, like the one in `Reviewed-on:`, were always
shortened to `#N`, which looks like a reference to external issue N.

Same-repo pull request URLs are now rendered as `!N` when an external
tracker is configured. Issue URLs, cross-repo links and repositories
without an external tracker are unchanged. Owner and repo are now read
from the parsed URL path, so a `/` in the query or fragment no longer
misattributes the link.

Before:
<img width="1100" height="560" alt="beforeResolving"
src="https://github.com/user-attachments/assets/c48e4219-73b4-42ba-9d10-3f5ce83d5832"
/>

After:
<img width="1100" height="560" alt="afterResolving"
src="https://github.com/user-attachments/assets/26348939-6d55-419b-bf4b-0cfcd5a2f17a"
/>

Fixes: https://github.com/go-gitea/gitea/issues/35050
Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-16 14:15:52 +00:00
Stella
e2f451ae11 fix(issues): match no issue when filtering by a non-existent assignee (#40278)
Filtering the dashboard issue and pull lists by a non-existent assignee
listed all unassigned items, because the username lookup returned
"(none)", which the issue search reads as "no assignee".

- Unknown poster and assignee names resolve to the Ghost user instead,
so they no longer match unassigned items
- System user names like `gitea-actions` resolve to their IDs, so their
issues can be filtered by poster

Fixes: https://github.com/go-gitea/gitea/issues/40276

Assisted-by: DeepSeek:V4.1-Flash
Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: Stella <353917373+Stella050408@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
2026-11-14 07:41:33 +00:00
Shivansh Garg
1f614953a2 enhance: allow admins to force user activity visibility (#40002)
Adds `[service] FORCE_USER_ACTIVITY_VISIBILITY` so admins can force the
activity of all users to be `public` or `private`, e.g. for company
instances that require public activity.

- When the value changes, the next start overwrites the "Hide Activity"
setting of all users. New users get the forced value too.
- The "Hide Activity" checkbox is disabled with an explanatory tooltip
while forced, and `PATCH /api/v1/user/settings` rejects a conflicting
`hide_activity` with 422.

| Before | After |
| --- | --- |
| <img width="122" height="17" alt="before"
src="https://github.com/user-attachments/assets/d138acec-5d40-4a0a-881c-0097e5197a8f"
/> | <img width="258" height="46" alt="after"
src="https://github.com/user-attachments/assets/7e8f7d1b-3303-4473-8d3b-aa35ef8fb20d"
/> |

Fixes: https://github.com/go-gitea/gitea/issues/37961

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: bircni <bircni@icloud.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-11-13 17:32:29 +00:00
silverwind
53aafd7ee1 fix(actions): include previous values in edited payloads (#40179)
Actions `edited` payloads omitted `changes`, so workflows could not see
previous values. Issue/PR title and body edits now carry
`changes.title`/`changes.body`, base branch changes add
`changes.base.ref`/`changes.base.sha` (and `changes.ref` now holds the
old branch, not the new one), release edits carry
`changes.name`/`changes.body`.

_Written by Claude (Opus 5.5)._

---------

Co-authored-by: Claude (Opus 5.5) <noreply@anthropic.com>
2026-11-13 08:43:13 +00:00
Rafail Giavrimis
38389f00be feat: unify code search, add search API (#39403)
Adds GitHub-style code search endpoints and makes code search behave the
same in the web UI and the API, whether it runs on git grep, bleve or
Elasticsearch.

- `GET /repos/{owner}/{repo}/code/search` searches any branch, tag or
commit with git grep, so it works without the code indexer.
- `GET /search/code` searches the default branches of all accessible
repositories with the code indexer.
- One query syntax everywhere: every term must match a file's content or
path, case-insensitively. It supports `"phrases"`, `/regexp/` (git grep
only) and the `path:`, `language:`, `repo:`, `user:` and `org:`
qualifiers. Invalid queries return an error.
- All engines apply the same include, exclude, vendored and size rules,
and return every match. The web UI shows them as multiple snippets per
file with the matched text highlighted.

<img width="359" height="295" alt="image"
src="https://github.com/user-attachments/assets/59b7aa66-b1dc-4938-9ef9-66668ae08d7c"
/>

Fixes: https://github.com/go-gitea/gitea/issues/10706
Fixed: https://github.com/go-gitea/gitea/issues/15841
Fixes: https://github.com/go-gitea/gitea/issues/31375
Related: https://gitea.com/gitea/gitea-mcp/issues/280
Docs: https://gitea.com/gitea/docs/pulls/615

AI usage disclosure: Yes, I used AI to write code, review changes and
verify the factuality of the overview I provided. I take full
responsibility for the code in this PR.

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-13 07:24:37 +00:00
Amal Saidov
c4fb82858e enhance(lfs): report status and body on non-JSON LFS error responses (#40331)
A push mirror or migration pointed at a remote that has LFS disabled
fails with a confusing error like `readObjectStart: expect { or n, but
found N ... |Not Found`. That comes from decoding the batch endpoint's
plain-text "Not Found" response as JSON.

Read the response body before decoding and, when it is not valid LFS
JSON, return the HTTP status together with the raw body so the message
points at the real cause. Responses that are proper LFS JSON errors
behave as before.

Fixes: https://github.com/go-gitea/gitea/issues/34897

Assisted-by: Claude Code:claude-opus-4-8

---------

Co-authored-by: amalsaidov <amalsaidov@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-11-12 07:10:04 +00:00
wxiaoguang
55539aad51 refactor(git): parse git stdout correctly (#40326)
* Introduce RunWithScannerSplit to correctly handle git stdout parsing
* Introduce IsEmptyObjectID for faster empty object ID checking
* Remove unnecessary and confusing ErrNotEmpty
2026-11-12 06:19:10 +00:00
wxiaoguang
b3422c0920 refactor: clean up error system (#40328)
1. `ctx.ServerError("LogMessage", err)` is very messy and useless. When
the log is printed, it already contains the caller's file and line
number
2. `ctx.NotFound(nil)` and `ctx.NotFound(err)` were abused a lot, now
only `ctx.NotFound()`

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-11 17:07:57 +00:00
Shudhanshu Singh
db23b5a192 fix(api): keep webhook settings that are omitted in an edit request (#40282)
`PATCH .../hooks/{id}` previously reset webhook events to push-only and
cleared the branch filter and authorization header whenever they were
not included in the payload. Disabling a hook with `{"active": false}`
silently destroyed its configuration.

`BranchFilter` and `AuthorizationHeader` are now pointers so omitted
fields remain untouched, while empty strings can still be passed to
clear them explicitly.

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-10 19:26:22 +00:00
wxiaoguang
d1d702bea9 refactor: user error system (#40308)
Introduce "FlashErrorAuto" for "XxxErrorAuto" family and simplify the
error handling logic.

* Use ErrorUnwrapForHTML for web error messages 
* Use ErrorUnwrapForUser for api error messages
* Make Flash message can take up to about 3000 bytes

Next step: completely refactor "ctx.ServerError"

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-10 16:29:36 +00:00
Shivansh Garg
640cd615c4 feat: restrict pull/issue creation on access basis (#40069)
Adds a repository-level **"Restrict to collaborators"** option under the
Issues and Pull Request unit settings. When enabled, only users with
collaborator access to the base repository (owner, team members, or
explicit collaborators) can open issues or pull requests against it.

Public repositories often need to be visible/cloneable by everyone, but
owners may want to limit who can open pull requests (e.g. restrict to an
internal team while still keeping the code public)

* Fixes: https://github.com/go-gitea/gitea/issues/40015
* Fixes: https://github.com/go-gitea/gitea/issues/31890
* Fixes: https://github.com/go-gitea/gitea/issues/28021
* Fixes: https://github.com/go-gitea/gitea/issues/14801

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-11-10 00:53:49 +00:00
wxiaoguang
772f365254 refactor: use RunWithStderr for git commands (#40295)
If the stderr output is not handled, then it needs to use RunWithStderr
to make sure the git error message is included in the returned error.
Otherwise, when the git command fails, the error log won't show useful
information.

Ref:

* #39795 : no useful information in log messages
*
https://github.com/go-gitea/gitea/pull/40160#pullrequestreview-5752720866
2026-11-09 17:59:52 +00:00
bircni
e0b2f3425e fix(actions): run pull_request workflows on the merge commit (#40076)
`pull_request` workflow runs checked out the PR head, so a PR could pass
CI and still break the base branch once merged.

Gitea now maintains `refs/pull/<index>/merge`, a test merge of the head
into the base branch, for open pull requests. It is updated on creation
and mergeability checks and removed on close or merge.

- `pull_request` runs read their workflows from the test merge and
expose it as `github.ref`, `github.sha` and
`github.event.pull_request.merge_commit_sha`. Commit statuses, the API's
`head_sha`, `workflow_run` payloads and `paths` filters stay on the
head.
- Runs fall back to the head when the merge conflicts, the pull request
is closed or git is older than 2.40.
- Hidden refs keep each run's test merge (`refs/gitea/run/<id>`) and
merged commits (`refs/gitea/pull/<index>/merged`) from `git gc`, for
reruns and after the base branch is deleted or force-pushed.

Fixes: https://github.com/go-gitea/gitea/issues/27039
Fixes: https://github.com/go-gitea/gitea/issues/13134
Fixes: https://github.com/go-gitea/gitea/issues/30972
Docs: https://gitea.com/gitea/docs/pulls/617

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-09 12:42:40 +00:00
Shudhanshu Singh
7b1cde99d0 perf(charset): skip plain ASCII text when escaping control characters (#39937)
Every line of file, blame, diff and code preview views goes through
`EscapeControlHTML`, which streamed it through a 32 KiB read buffer and
copied every tag and text part. Views render the `EscapeStatus` before
the content, so every caller holds the complete HTML and streaming can't
help. It is now escaped in one pass over the string and returned
unchanged when nothing needs escaping.

- Skip text of printable ASCII, tabs and newlines, such lines return
immediately
- Render markup and wiki pages into a buffer instead of a pipe and
goroutine, and remove `EscapeControlReader`
- Analyze long text parts in windows overlapping by the detection
context, which bounds memory without changing results
- Escape invalid bytes before a tag, they were moved into the tag part
unescaped and could hide a `<math>` tag

| | before | after |
|---|---|---|
| ASCII line | 5.1 µs, 59 allocs | 0.08 µs, 1 alloc |
| line with one `é` | 3.9 µs, 30 allocs | 0.29 µs, 3 allocs |
| 150 KB document | 2.5 ms, 5.6 MB | 0.27 ms, 0.6 KB |

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2026-11-09 03:42:30 +00:00
Lunny Xiao
1554b6c939 feat!: remove repository adopt feature (#40181)
Remove the "adopt unadopted repositories" feature. Adopting assumes a
fixed repository storage path on disk, which makes the storage path hard
to change. It is mostly used once for migrations, and the [Gitea
importer](https://gitea.com/gitea/importer) covers that after the
repositories are moved out of the repository root. The docs are updated
in https://gitea.com/gitea/docs/pulls/639.

- Remove the admin and user adopt pages, the `/admin/unadopted` API
endpoints and the adopt notifier hook
- Remove the `ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES` and
`ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES` settings
- The user "Repositories" settings page only lists the user's
repositories
- Repository files without a database record must now be removed from
disk by the administrator

Assisted-by: Codet:claude

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-08 18:38:23 +00:00
wxiaoguang
3699309edd feat: support jpeg-xl (jxl) (#40283)
Major browsers (Chrome/Firefox/Safari) all support it now,
https://developer.chrome.com/blog/jpeg-xl-in-chrome

* Fix #16629
2026-11-08 15:24:46 +00:00
silverwind
cd92c6a008 fix: paste copied code as text, not as a markdown table (#40053)
Copying lines from a diff, file view, blame, code search or code preview
and pasting them into a comment on Gitea or GitHub produced a markdown
table with escaped pipes and stripped indentation. Both use
`@github/paste-markdown`, which converts copied HTML tables unless they
carry `data-paste-markdown-skip`, as GitHub's own code tables do.
Gitea's code tables now set it too.

The test is a bit more complicated because of a upstream bug which
causes `paste-markdown` to insert pasted content twice, once
https://github.com/github/paste-markdown/pull/128 is merged and
released, the negative assertion could be removed.

---------

Signed-off-by: silverwind <me@silverwind.io>
2026-11-08 09:01:50 +00:00
silverwind
51879941dc enhance: improve commit and compare link rendering (#40154)
Commit, compare and SHA links render the SHA in code with the rest of
the URL after it, and links to other repositories get an `owner/repo@`
prefix like references do.

- Abbreviated SHAs, branch compares and `<url>` autolinks now render as
commit links
- Pull request commit URLs no longer break into an issue reference plus
stray text
- Only routes that take a SHA are shortened, so file and API URLs stay
plain

Replaces https://github.com/go-gitea/gitea/pull/36725

<img width="620" alt="Commit links before and after"
src="https://github.com/user-attachments/assets/5919c8a0-94e3-4148-ad11-6944bf790572"
/>
2026-11-07 22:43:07 +00:00
William Desportes
87a703819b fix(queue): bump levelqueue to v0.5.0 and remove workarounds (#40219)
levelqueue v0.5.1 fixes this upstream
(https://gitea.com/lunny/levelqueue/pulls/8), so this now only bumps the
dependency.

A push wrote "high" before the payload, so an interrupted push left an
id counted with no key. `LPop` then returned `ErrNotFound` without
advancing "low" and the wrapper retried forever: nothing popped, no
worker started, later items unreachable. All were only fixable by
clearing the queue, losing the backlog:
- https://github.com/go-gitea/gitea/issues/32006 — mail, 0 workers
- https://github.com/go-gitea/gitea/issues/28919 — mirror, "already in
queue"
- https://github.com/go-gitea/gitea/issues/33862 — archives hanging
- https://github.com/go-gitea/gitea/issues/33882 — self-healing request

v0.5.1 writes counter and payload in one batch, moves the counters past
missing keys, and repairs leftover unique-queue set entries, so affected
instances recover on their next pop.

No test: the behaviour lives in the dependency, which covers it in its
own `recover_test.go`.

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-11-07 22:26:53 +00:00
Lazizbek Ergashev
884884308d fix(pull): don't add a timeline entry for pending API reviews (#40260)
Pending reviews created through the API went through `SubmitReview`,
which added a timeline entry and sent notifications before the review
was submitted, so submitting it later showed the review twice.

- Pending reviews skip the timeline entry and notifications until
submitted, like on GitHub
- `CreatePullReview` rejects comments without a `path` or a positive
line with 422, like GitHub
- Already duplicated reviews stay as they are

Fixes https://github.com/go-gitea/gitea/issues/40259

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-07 14:19:50 +00:00
Mitrahsoft
3aca9c8fb7 enhance(actions): create commit status for workflow_dispatch runs (#39961)
Runs triggered by `workflow_dispatch` never created a commit status, so
the commit showed no sign that a workflow ran on it.

- Post the status on the run's commit, e.g. `ci / e2e
(workflow_dispatch)`. `schedule` runs stay unchanged.
- These statuses don't count for pull requests. They don't show in a
PR's checks and can't satisfy or fail its required checks, even through
broad globs like `ci / e2e*`.

Closes https://github.com/go-gitea/gitea/issues/39639

---------

Co-authored-by: silverwind <me@silverwind.io>
2026-11-07 12:55:19 +00:00
wxiaoguang
a165fdb63c refactor: lazy init global regexp variables (#40269)
Gitea binary is an all-in-one program.

It doesn't make sense to compile dozens or even hundreds of regexps for
git hook sub commands.
2026-11-07 11:56:56 +00:00