fixed 项目没有master分支时,创建发行版错误

This commit is contained in:
xxq250 2024-06-05 08:51:23 +08:00
parent e09dbfeba5
commit 395c3fd1fc
1 changed files with 1 additions and 1 deletions

View File

@ -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