forked from Trustie/forgeplus
项目简介长度2000
This commit is contained in:
parent
7ca13fb387
commit
033865df66
|
|
@ -33,6 +33,6 @@ class VersionRelease < ApplicationRecord
|
|||
|
||||
def update_sha
|
||||
git_release = Gitea::Versions::GetService.call(user.gitea_token, repository&.owner&.login, repository&.identifier, version_gid)
|
||||
self.update(sha: git_release["sha"]) if git_release.present?
|
||||
self.update(sha: git_release["sha"]) if git_release.present? && git_release["status"].to_s != "-1"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue