change bug

This commit is contained in:
sylor_huang@126.com 2020-06-09 14:28:33 +08:00
parent 7ce6b01097
commit d586f526c9
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ class RepositoriesController < ApplicationController
if hook_type == "push"
# TODO hook返回的记录中暂时没有文件代码数量的增减暂时根据 commits数量来计算
uploadPushInfo = {
"sha": params["commits"].present? ? params["commits"].last. : "",
"sha": params["commits"].present? ? params["commits"].last : "",
"branch": params["ref"].to_s.split("/").last,
"modification_lines": params["commits"].length
}
@ -176,7 +176,7 @@ class RepositoriesController < ApplicationController
uploadPushInfo = {}
end
return uploadPushInfo
uploadPushInfo
end
def create_new_pr(params)