mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 17:55:56 +08:00
fixed 项目没有master分支时,创建发行版错误
This commit is contained in:
@@ -157,7 +157,7 @@ class VersionReleasesController < ApplicationController
|
||||
name: params[:name],
|
||||
prerelease: params[:prerelease] || false,
|
||||
tag_name: params[:tag_name],
|
||||
target_commitish: params[:target_commitish] || "master" #分支
|
||||
target_commitish: params[:target_commitish] || @project.default_branch #分支
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user