Skip to content

Commit 124d41d

Browse files
committed
Fix issue listing and filtering, bump 0.1.5
refs #23
1 parent e9cb054 commit 124d41d

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

lib/bitbucket_rest_api/issues.rb

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class Issues < API
1919
priority
2020
status
2121
kind
22+
limit
23+
start
24+
search
25+
sort
26+
reported_by
2227
].freeze
2328

2429
VALID_ISSUE_PARAM_VALUES = {
@@ -50,9 +55,19 @@ def milestones
5055
# List issues for a repository
5156
#
5257
# = Inputs
53-
# <tt>:filter</tt> - Optional - See https://confluence.atlassian.com/display/BITBUCKET/Issues#Issues-Filtering for building the filter string
54-
# <tt>:start</tt> - Optional - Issue offset, default 0
5558
# <tt>:limit</tt> - Optional - Number of issues to retrieve, default 15
59+
# <tt>:start</tt> - Optional - Issue offset, default 0
60+
# <tt>:search</tt> - Optional - A string to search for
61+
# <tt>:sort</tt> - Optional - Sorts the output by any of the metadata fields
62+
# <tt>:title</tt> - Optional - Contains a filter operation to restrict the list of issues by the issue title
63+
# <tt>:content</tt> - Optional - Contains a filter operation to restrict the list of issues by the issue content
64+
# <tt>:version</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the version
65+
# <tt>:milestone</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the milestone
66+
# <tt>:component</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the component
67+
# <tt>:kind</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the issue kind
68+
# <tt>:status</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the issue status
69+
# <tt>:responsible</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the user responsible
70+
# <tt>:reported_by</tt> - Optional - Contains a filter operation to restrict the list of issues by the user that reported the issue
5671
#
5772
# = Examples
5873
# bitbucket = BitBucket.new :user => 'user-name', :repo => 'repo-name'

lib/bitbucket_rest_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module BitBucket
44
module VERSION
55
MAJOR = 0
66
MINOR = 1
7-
PATCH = 4
7+
PATCH = 5
88

99
STRING = [MAJOR, MINOR, PATCH].compact.join('.')
1010
end

0 commit comments

Comments
 (0)