pull request identifier没定义
This commit is contained in:
parent
ebb7afe9e5
commit
02a0a244f6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue