forgejo/services/repository
JakobDev 8296a23d79
Some checks failed
/ release (push) Waiting to run
testing / backend-checks (push) Has been skipped
testing / frontend-checks (push) Has been skipped
testing / test-unit (push) Has been skipped
testing / test-e2e (push) Has been skipped
testing / test-mysql (push) Has been skipped
testing / test-pgsql (push) Has been skipped
testing / test-sqlite (push) Has been skipped
testing / test-remote-cacher (redis) (push) Has been skipped
testing / test-remote-cacher (valkey) (push) Has been skipped
testing / test-remote-cacher (garnet) (push) Has been skipped
testing / test-remote-cacher (redict) (push) Has been skipped
testing / security-check (push) Has been skipped
Integration tests for the release process / release-simulation (push) Has been cancelled
feat: sync forks (#2364)
This allows syncing a branch of a fork with a branch of the base repo. It looks like this:
![grafik](/attachments/4508920c-7d0b-4330-9083-e3048733e38d)
This is only possible, if the fork don't have commits that are not in the main repo.

The feature is already working, but it is missing Finetuning, a better API, translations and tests, so this is currently WIP. It is also not tested with go-git.

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Features
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/2364): <!--number 2364 --><!--line 0 --><!--description c3luYyBmb3Jrcw==-->sync forks<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2364
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: JakobDev <jakobdev@gmx.de>
Co-committed-by: JakobDev <jakobdev@gmx.de>
2025-04-07 07:00:38 +00:00
..
archiver Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
commitstatus chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
files Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
gitgraph chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
adopt.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
adopt_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
avatar.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
avatar_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
branch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
cache.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
check.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
collaboration.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
collaboration_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
commit.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
contributors_graph.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
contributors_graph_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
create.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
create_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
delete.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fork.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fork_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
generate.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
generate_test.go Move generate from module to service (#29465) 2024-03-06 12:10:44 +08:00
hooks.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
init.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
lfs.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
lfs_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
migrate.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
push.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repository.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repository_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
review.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
review_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
setting.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
star.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
sync_fork.go feat: sync forks (#2364) 2025-04-07 07:00:38 +00:00
template.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
transfer.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
transfer_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00