mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
change
This commit is contained in:
@@ -132,8 +132,8 @@ class RepositoriesController < ApplicationController
|
|||||||
@tags_count = Gitea::Repository::Tags::ListService.new(current_user&.gitea_token, @project.owner.login, @project.identifier).call&.size
|
@tags_count = Gitea::Repository::Tags::ListService.new(current_user&.gitea_token, @project.owner.login, @project.identifier).call&.size
|
||||||
|
|
||||||
latest_commit = get_latest_commit
|
latest_commit = get_latest_commit
|
||||||
@latest_commit = latest_commit[:body][0]
|
@latest_commit = latest_commit[:body][0] if latest_commit.present?
|
||||||
@commits_count = latest_commit[:total_count]
|
@commits_count = latest_commit[:total_count] if latest_commit.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_ref
|
def get_ref
|
||||||
|
|||||||
Reference in New Issue
Block a user