fastlane/lib/fastlane/actions/create_pull_request.rb in fastlane-2.145.0 vs fastlane/lib/fastlane/actions/create_pull_request.rb in fastlane-2.146.0

- old
+ new

@@ -13,10 +13,11 @@ 'title' => params[:title], 'head' => params[:head], 'base' => params[:base] } payload['body'] = params[:body] if params[:body] + payload['draft'] = params[:draft] if params[:draft] GithubApiAction.run( server_url: params[:api_url], api_token: params[:api_token], http_method: 'POST', @@ -174,10 +175,15 @@ FastlaneCore::ConfigItem.new(key: :body, env_name: "GITHUB_PULL_REQUEST_BODY", description: "The contents of the pull request", is_string: true, optional: true), + FastlaneCore::ConfigItem.new(key: :draft, + env_name: "GITHUB_PULL_REQUEST_DRAFT", + description: "Indicates whether the pull request is a draft", + type: Boolean, + optional: true), FastlaneCore::ConfigItem.new(key: :labels, env_name: "GITHUB_PULL_REQUEST_LABELS", description: "The labels for the pull request", type: Array, optional: true), @@ -224,10 +230,10 @@ optional: true) ] end def self.author - ["seei", "tommeier", "marumemomo", "elneruda"] + ["seei", "tommeier", "marumemomo", "elneruda", "kagemiku"] end def self.is_supported?(platform) return true end