Merge branch 'develop' into standalone_develop

This commit is contained in:
2023-03-31 10:31:23 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ class ProjectsController < ApplicationController
# result = Gitea::Repository::Branches::ListService.call(@owner, @project.identifier)
result = Gitea::Repository::Branches::ListNameService.call(@owner, @project.identifier, params[:name])
@branches = result.is_a?(Hash) ? (result.key?(:status) ? [] : result["branch_name"]) : result
@branches = result.is_a?(Hash) ? (result.key?(:status) ? [] : result) : result
end
def branches_slice