Skip to content

Commit

Permalink
STEM-2986: fix pull requests filter by state
Browse files Browse the repository at this point in the history
  • Loading branch information
igormatos committed May 9, 2022
1 parent cc3cf9a commit da53c2c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def self.run(params)
base_url = 'https://api.bitbucket.org'
end

if params[:status] then
query_params = { status: params[:status] }
if params[:state] then
query_params = { state: params[:state] }
else
query_params = { }
end
Expand Down Expand Up @@ -81,9 +81,9 @@ def self.available_options
type: String
),
FastlaneCore::ConfigItem.new(
key: :status,
env_name: "BITBUCKET_FETCH_PULL_REQUESTS_STATUS",
description: "Filter pull requests by status, e.g: OPEN, MERGED or DECLINED",
key: :state,
env_name: "BITBUCKET_FETCH_PULL_REQUESTS_STATE",
description: "Filter pull requests by state, e.g: OPEN, MERGED or DECLINED",
optional: true,
type: String
)
Expand Down

0 comments on commit da53c2c

Please sign in to comment.