def create_pull_request
      unless uploads.empty?
        branch = patch_branch
        create_branch(branch)
        uploads.each do |key, upload|
          client.create_contents(
            repo,
            upload[:filename],
            "Create #{upload[:filename]}",
            branch: branch,
            file: upload[:tempfile]
          )
          session["file_#{key}"] = nil
        end
      end
      pr = client.create_pull_request(repo, 'master', branch, form_data['title'], issue_body, labels: labels)
      pr['number'] if pr
    end
def create_pull_request
      unless uploads.empty?
        branch = patch_branch
        create_branch(branch)
        uploads.each do |key, upload|
          client.create_contents(
            repo,
            upload[:filename],
            "Create #{upload[:filename]}",
            branch: branch,
            file: upload[:tempfile]
          )
          session["file_#{key}"] = nil
        end
      end
      pr = client.create_pull_request(repo, 'master', branch, form_data['title'], issue_body, labels: labels)
      pr['number'] if pr
    end
Create a pull request with the form contents