lib/learn_web/client/pull_request.rb in learn-web-1.2.0 vs lib/learn_web/client/pull_request.rb in learn-web-1.3.0
- old
+ new
@@ -5,14 +5,14 @@
module PullRequest
def pr_endpoint
"#{API_ROOT}/lesson_submissions"
end
- def issue_pull_request(repo_name:, branch_name:)
+ def issue_pull_request(repo_name:, branch_name:, message: nil)
response = post(
pr_endpoint,
headers: { 'Authorization' => "Bearer #{token}" },
- params: { 'repo_name' => repo_name, 'branch_name' => branch_name }
+ params: { 'repo_name' => repo_name, 'branch_name' => branch_name, 'message' => message }
)
LearnWeb::Client::PullRequest::Response.new(response)
end
end