1
0
Fork
You've already forked forgejo
0
forked from forgejo/forgejo
Beyond coding. We forge.
  • Go 81.5%
  • go-html-template 10.7%
  • JavaScript 2.7%
  • CSS 1.9%
  • TypeScript 1.8%
  • Other 1.3%
Find a file
dawe 3ac57f7e78 fix(api): return empty slice instead of null from the branches API if the repository is empty ( #13299 )
fixes #13295
### Tests for Go changes
- I added test coverage for Go changes...
 - [ ] in their respective `*_test.go` for unit tests.
 - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I ran...
 - [x] `make pr-go` before pushing
### Documentation
- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.
### Release notes
- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.
*The decision if the pull request will be shown in the release notes is up to the mergers / release team.*
The content of the `release-notes/<pull request number>.md` file will serve as the basis for the release notes. If the file does not exist, the title of the pull request will be used instead.
Reviewed-on: forgejo/forgejo#13299
Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.codeberg.org>
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
2026年07月05日 02:52:27 +02:00
.devcontainer chore: rename devcontainer name ( #12356 ) 2026年05月01日 00:20:15 +02:00
.forgejo Update forgejo/forgejo-build-publish to v5.7.2 (forgejo) ( #13008 ) 2026年06月29日 21:42:45 +02:00
.semgrep chore(refactor): add getter/setter to APIContext data members ( #13143 ) 2026年06月27日 02:53:45 +02:00
assets chore: remove EXIF stripping capability due to usage of AGPL licensed exif-terminator library ( #13105 ) 2026年06月17日 16:16:35 +02:00
build chore: add permissions.Context methods to lint-single-response ( #13234 ) 2026年07月01日 15:41:04 +02:00
cmd fix: terminate git (& other) subcommands gracefully on context timeout/cancellation ( #13263 ) 2026年07月01日 20:26:02 +02:00
contrib fix(coverage): Integration tests don't run with coverage ( #12978 ) 2026年06月13日 23:25:38 +02:00
custom/conf chore: use correct value to disable timeouts in example config ( #12985 ) 2026年06月09日 00:04:36 +02:00
docker fix: remove default 'REVERSE_PROXY_TRUSTED_PROXIES = *' from docker config ( #12782 ) 2026年05月28日 13:52:03 +02:00
models feat: adds "actor" as a protected / forbidden username ( #13077 ) 2026年07月04日 16:01:31 +02:00
modules enh(issue-search): treat terms in query strings with no explicit operator as MUST ( #13025 ) 2026年07月04日 16:05:50 +02:00
options fix(ui): in the admin config panel do not report a cache taking more than 100 microseconds as slow ( #13256 ) 2026年06月30日 12:06:06 +02:00
public chore: PGP sign .well-known/security.txt [skip ci] ( #12502 ) 2026年05月10日 02:21:17 +02:00
release-notes fix: compliance with [migrations].ALLOWED_DOMAINS, ...BLOCKED_DOMAINS, and ....ALLOW_LOCALNETWORKS for git & LFS ops ( #13129 ) 2026年06月23日 23:40:25 +02:00
release-notes-published chore: 16.0.0 is now stable - first commit 2026年06月25日 06:24:36 +02:00
releases/images
routers fix(api): return empty slice instead of null from the branches API if the repository is empty ( #13299 ) 2026年07月05日 02:52:27 +02:00
services fix: add extraLinesCount to reply template ( #13258 ) 2026年07月04日 05:02:28 +02:00
templates chore: have stylelint lint CSS in tmpl files to enforce RTL-friendly logical properties ( #13216 ) 2026年07月04日 17:05:27 +02:00
tests fix(api): return empty slice instead of null from the branches API if the repository is empty ( #13299 ) 2026年07月05日 02:52:27 +02:00
tools chore: move backend-checks CI checks to Makefile: make pr-go ( #11053 ) 2026年02月17日 02:41:40 +01:00
web_src fix(ui): allow dragging up for a multi-line comment ( #13296 ) 2026年07月05日 02:49:50 +02:00
.air.toml chore: rename 'migrations' to 'gitea_migrations' 2025年10月14日 14:40:49 -06:00
.deadcode-out chore(refactor): remove GetX redundant accessors and use X in services/context/api.go ( #13215 ) 2026年06月27日 18:34:52 +02:00
.dockerignore fix: Dockerfile should re-use bindata files when possible 2025年06月13日 14:00:57 +02:00
.editorconfig i18n(next): convert indention style to tabs: en, editorconfig ( #10661 ) 2026年01月02日 05:56:48 +01:00
.envrc.example Make direnv optional to let developers use their own direnv configuration 2024年11月06日 20:34:49 +01:00
.gitattributes Add interface{} to any replacement to make fmt, exclude *.pb.go ( #30461 ) 2024年04月15日 20:01:36 +02:00
.gitignore feat: adds option to force overwrite new branch for /contents route ( #12663 ) 2026年06月06日 16:45:57 +02:00
.gitmodules cleanup(tests): remove manual testing submodule 2024年04月21日 10:13:51 +02:00
.gitpod.yml Remove sqlite-viewer and using database client ( #31223 ) 2024年06月09日 11:13:39 +02:00
.golangci.yml chore(nilnil lint): resolve low-hanging fruit nilnil lint violations ( #13230 ) 2026年07月03日 23:48:03 +02:00
.ignore Add /options/license and /options/gitignore to .ignore ( #30219 ) 2024年04月07日 15:40:31 +02:00
.mailmap Add .mailmap with aliases for Unknwon (github.com/Unknwon) 2024年08月14日 08:26:16 -04:00
.markdownlint.yaml
.mockery.yml feat: evaluate action job's if on the server-side when possible ( #13030 ) 2026年06月16日 00:02:57 +02:00
.node-version Update nodejs to v24.17.0 (forgejo) ( #13144 ) 2026年06月20日 02:23:03 +02:00
.npmrc
.release-notes-assistant.yaml chore: fix rna config ( #12304 ) 2026年04月28日 18:56:52 +02:00
.spectral.yaml
.yamllint.yaml
BSDmakefile feat: Makefile & BSDmakefile changes ( #7455 ) 2025年04月27日 10:04:32 +00:00
CODEOWNERS chore: update codeowners ( #12844 ) 2026年05月31日 14:42:17 +02:00
CONTRIBUTING.md chore: mention CoC and highlight AI agreement in CONTRIBUTING.md ( #12867 ) 2026年06月01日 16:17:35 +02:00
DCO
Dockerfile build: enable go toolchain download on docker images ( #9837 ) 2026年07月04日 16:56:25 +02:00
Dockerfile.rootless build: enable go toolchain download on docker images ( #9837 ) 2026年07月04日 16:56:25 +02:00
eslint.config.mjs Update linters (forgejo) ( #11627 ) 2026年03月12日 18:27:43 +01:00
flake.lock chore: update flake.lock; add gnupg as dependency ( #12497 ) 2026年05月09日 23:53:35 +02:00
flake.nix refactor: Simplify flake.nix ( #9805 ) 2025年10月22日 19:09:11 +02:00
go.mod Update module github.com/go-chi/chi/v5 to v5.3.0 (forgejo) ( #12697 ) 2026年06月29日 23:35:12 +02:00
go.sum Update module github.com/go-chi/chi/v5 to v5.3.0 (forgejo) ( #12697 ) 2026年06月29日 23:35:12 +02:00
LICENSE Forgejo v9.0 is GPLv3+ 2024年08月22日 09:09:29 +02:00
main.go fix: do not mix urfave v2 with urfave v3 ( #8168 ) 2025年06月12日 15:38:03 +02:00
Makefile chore: have stylelint lint CSS in tmpl files to enforce RTL-friendly logical properties ( #13216 ) 2026年07月04日 17:05:27 +02:00
manifest.scm chore: add delve Go debugger to Guix manifest ( #12662 ) 2026年05月22日 11:09:11 +02:00
package-lock.json Update dependency globals to v17.7.0 (forgejo) ( #13251 ) 2026年07月01日 00:19:08 +02:00
package.json Update dependency globals to v17.7.0 (forgejo) ( #13251 ) 2026年07月01日 00:19:08 +02:00
playwright.config.ts chore(e2e): refactor "Toggle visibility" org-members test ( #12871 ) 2026年06月02日 14:52:01 +02:00
README.md chore: fix a few typos in the documentation ( #9134 ) 2025年09月04日 01:53:40 +02:00
release-notes-assistant.sh fix(rna): prioritize breaking changes without a feature or bug label over non-breaking changes ( #12124 ) 2026年04月17日 15:24:58 +02:00
RELEASE-NOTES.md chore(release-notes): fix release notes of chroma update in v8.0.0 2025年10月05日 17:10:38 +05:00
shell.nix chore: update flake.lock; add gnupg as dependency ( #12497 ) 2026年05月09日 23:53:35 +02:00
stylelint.config.js chore: have stylelint lint CSS in tmpl files to enforce RTL-friendly logical properties ( #13216 ) 2026年07月04日 17:05:27 +02:00
tailwind.config.js chore(ui): change /devtest to /-/demo ( #11019 ) 2026年01月26日 13:12:25 +01:00
tsconfig.json feat(ui): replace Monaco with CodeMirror ( #10559 ) 2026年01月04日 23:52:33 +01:00
vitest.config.ts feat(ui): replace Monaco with CodeMirror ( #10559 ) 2026年01月04日 23:52:33 +01:00
webpack.config.js chore(ui): change /devtest to /-/demo ( #11019 ) 2026年01月26日 13:12:25 +01:00

Welcome to Forgejo

Hi there! Tired of big platforms playing monopoly? Providing Git hosting for your project, friends, company or community? Forgejo (/for'd͡ʒe.jo/ inspired by forĝejo – the Esperanto word for forge) has you covered with its intuitive interface, light and easy hosting and a lot of built-in functionality.

Forgejo was created in 2022 because we think that the project should be owned by an independent community. If you second that, then Forgejo is for you! Our promise: Independent Free/Libre Software forever!

What does Forgejo offer?

If you like any of the following, Forgejo is literally meant for you:

  • Lightweight: Forgejo can easily be hosted on nearly every machine. Running on a Raspberry? Small cloud instance? No problem!
  • Project management: Besides Git hosting, Forgejo offers issues, pull requests, wikis, kanban boards and much more to coordinate with your team.
  • Publishing: Have something to share? Use releases to host your software for download, or use the package registry to publish it for docker, npm and many other package managers.
  • Customizable: Want to change your look? Change some settings? There are many config switches to make Forgejo work exactly like you want.
  • Powerful: Organizations & team permissions, CI integration, Code Search, LDAP, OAuth and much more. If you have advanced needs, Forgejo has you covered.
  • Privacy: From update checker to default settings: Forgejo is built to be privacy first for you and your crew.
  • Federation: (WIP) We are actively working to connect software forges with each other through ActivityPub, and create a collaborative network of personal instances.

Learn more

Dive into the documentation, subscribe to releases and blog post on our website, find us on the Fediverse or hop into our Matrix room if you have any questions or want to get involved.

License

Forgejo is distributed under the terms of the GPL version 3.0 or any later version.

The agreement for this license was documented in June 2023 and implemented during the development of Forgejo v9.0. All Forgejo versions before v9.0 are distributed under the MIT license.

Get involved

If you are interested in making Forgejo better, either by reporting a bug or by changing the governance, please take a look at the contribution guide.