From 02a0a244f6afbe61299677146e48aa2691011990 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 8 Jun 2018 10:47:54 +0800 Subject: [PATCH] =?UTF-8?q?pull=20request=20identifier=E6=B2=A1=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/pull_requests_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/pull_requests_controller.rb b/app/controllers/pull_requests_controller.rb index 8e722c8ba..0c376f010 100644 --- a/app/controllers/pull_requests_controller.rb +++ b/app/controllers/pull_requests_controller.rb @@ -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