pull request identifier没定义

This commit is contained in:
huang 2018-06-08 10:47:54 +08:00
parent ebb7afe9e5
commit 02a0a244f6
1 changed files with 3 additions and 1 deletions

View File

@ -93,6 +93,8 @@ class PullRequestsController < ApplicationController
target_project_id = params[:target_project_id]
begin
@gitlab_address = Redmine::Configuration['gitlab_address']
identifier = @project.repository.try(:identifier)
logger.info("1111111111111111#{identifier}")
git_url = @gitlab_address.to_s+"/"+@project.owner.to_s+"/"+ identifier + "."+"git"
job_name = Time.now.to_i
# 如果分支有改动
@ -136,7 +138,7 @@ class PullRequestsController < ApplicationController
end
end
rescue Exception => e
Rails.logger.info("create PR failed ####{e}")
logger.info("create PR failed ####{e}")
end
end