|
|
@ -371,6 +371,9 @@ class GamesService
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if content != last_content
|
|
|
|
if content != last_content
|
|
|
|
content_modified = 1
|
|
|
|
content_modified = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails.logger.info("@@@@@####{params[:evaluate]}")
|
|
|
|
|
|
|
|
Rails.logger.info("@@@@@####{params[:evaluate] == 1 ? "commit by author" : "auto commit" }")
|
|
|
|
code_file = @g.edit_file(@myshixun.gpid, current_user.login, :content => content, :file_path => path, :branch_name => "master",
|
|
|
|
code_file = @g.edit_file(@myshixun.gpid, current_user.login, :content => content, :file_path => path, :branch_name => "master",
|
|
|
|
:commit_message => (params[:evaluate] == 1 ? "commit by author" : "auto commit" ))
|
|
|
|
:commit_message => (params[:evaluate] == 1 ? "commit by author" : "auto commit" ))
|
|
|
|
end
|
|
|
|
end
|
|
|
|