Module: BacklogKit::Client::Star

Included in:
BacklogKit::Client
Defined in:
lib/backlog_kit/client/star.rb

Overview

Methods for the Star API

Instance Method Summary collapse

Instance Method Details

#add_issue_comment_star(comment_id) ⇒ BacklogKit::Response

Add a star to an issue comment

Parameters:

  • comment_id (Integer, String)

    Comment id

Returns:



17
18
19
# File 'lib/backlog_kit/client/star.rb', line 17

def add_issue_comment_star(comment_id)
  post('stars', comment_id: comment_id)
end

#add_issue_star(issue_id) ⇒ BacklogKit::Response

Add a star to an issue

Parameters:

  • issue_id (Integer, String)

    Issue id

Returns:



9
10
11
# File 'lib/backlog_kit/client/star.rb', line 9

def add_issue_star(issue_id)
  post('stars', issue_id: issue_id)
end

#add_pull_request_comment_star(pull_request_comment_id) ⇒ BacklogKit::Response

Add a star to a pull request comment

Parameters:

  • pull_request_comment_id (Integer, String)

    Pull request comment id

Returns:



41
42
43
# File 'lib/backlog_kit/client/star.rb', line 41

def add_pull_request_comment_star(pull_request_comment_id)
  post('stars', pull_request_comment_id: pull_request_comment_id)
end

#add_pull_request_star(pull_request_id) ⇒ BacklogKit::Response

Add a star to a pull request

Parameters:

  • pull_request_id (Integer, String)

    Pull request id

Returns:



33
34
35
# File 'lib/backlog_kit/client/star.rb', line 33

def add_pull_request_star(pull_request_id)
  post('stars', pull_request_id: pull_request_id)
end

#add_wiki_star(wiki_id) ⇒ BacklogKit::Response

Add a star to a wiki page

Parameters:

  • wiki_id (Integer, String)

    Wiki page id

Returns:



25
26
27
# File 'lib/backlog_kit/client/star.rb', line 25

def add_wiki_star(wiki_id)
  post('stars', wiki_id: wiki_id)
end