fix: commit author and fork create units

This commit is contained in:
2021-04-02 18:53:53 +08:00
parent 6ce4b26047
commit c175fa1339
2 changed files with 4 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ class Projects::ForkService < ApplicationService
new_repository.identifier = @project.identifier
new_repository.save!
ProjectUnit.init_types(clone_project.id)
result = Gitea::Repository::ForkService.new(@project.owner, @target_owner, @project.identifier, @organization).call
@project.update_column('forked_count', @project&.forked_count.to_i + 1)