You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services/migrations
Sebastian Brückner 8faa38568b
Use GitLab's squash_commit_sha when available (#27824)
Before this PR, the PR migration code populates Gitea's MergedCommitID
field by using GitLab's merge_commit_sha field. However, that field is
only populated when the PR was merged using a merge strategy. When a
squash strategy is used, squash_commit_sha is populated instead.

Given that Gitea does not keep track of merge and squash commits
separately, this PR simply populates Gitea's MergedCommitID by using
whichever field is present in the GitLab API response.
8 months ago
..
codebase.go Replace `interface{}` with `any` (#25686) 1 year ago
codebase_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
common.go Replace `interface{}` with `any` (#25686) 1 year ago
dump.go Next round of `db.DefaultContext` refactor (#27089) 10 months ago
error.go Update github.com/google/go-github to v53 (#25157) 1 year ago
git.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitbucket.go Rewrite logger system (#24726) 1 year ago
gitea_downloader.go Rewrite logger system (#24726) 1 year ago
gitea_downloader_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitea_uploader.go Final round of `db.DefaultContext` refactor (#27587) 9 months ago
gitea_uploader_test.go Final round of `db.DefaultContext` refactor (#27587) 9 months ago
github.go Fix panic when migrating a repo from GitHub with issues (#25246) 1 year ago
github_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitlab.go Use GitLab's squash_commit_sha when available (#27824) 8 months ago
gitlab_test.go GitLab migration: Sanitize response for reaction list (#25054) 1 year ago
gogs.go Rewrite logger system (#24726) 1 year ago
gogs_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
http_client.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go make writing main test easier (#27270) 10 months ago
migrate.go Next round of `db.DefaultContext` refactor (#27089) 10 months ago
migrate_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
onedev.go Replace `interface{}` with `any` (#25686) 1 year ago
onedev_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
restore.go Implement FSFE REUSE for golang files (#21840) 2 years ago
update.go Final round of `db.DefaultContext` refactor (#27587) 9 months ago