lib/circleci/bundle/update/pr.rb in circleci-bundle-update-pr-1.11.0 vs lib/circleci/bundle/update/pr.rb in circleci-bundle-update-pr-1.11.1

- old
+ new

@@ -17,14 +17,14 @@ git_username ||= client.user.login git_email ||= "#{git_username}@users.noreply.#{github_host}" create_branch(git_username, git_email, branch, repo_full_name) pull_request = create_pull_request(repo_full_name, branch, now) + add_labels(repo_full_name, pull_request[:number], labels) if labels update_pull_request_body(repo_full_name, pull_request[:number]) add_assignees(repo_full_name, pull_request[:number], assignees) if assignees request_review(repo_full_name, pull_request[:number], reviewers) if reviewers - add_labels(repo_full_name, pull_request[:number], labels) if labels end def self.need?(git_branches) return false unless git_branches.include?(ENV['CIRCLE_BRANCH']) unless system("bundle update && bundle update --ruby") @@ -46,10 +46,9 @@ end private_class_method :create_branch def self.create_pull_request(repo_full_name, branch, now) title = "bundle update at #{now.strftime('%Y-%m-%d %H:%M:%S %Z')}" - build_url = URI.parse ENV['CIRCLE_BUILD_URL'] client.create_pull_request(repo_full_name, ENV['CIRCLE_BRANCH'], branch, title) end private_class_method :create_pull_request def self.update_pull_request_body(repo_full_name, pr_number)