Sha256: b31eceaa06c07506a13d3bf5daf5e430fc0bcf7b0ce3495d2ded6d42bdea5534

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 KB

Contents

module BacklogKit
  class Client
    # Methods for the Star API
    module Star
      # Add a star to an issue
      #
      # @param issue_id [Integer, String] Issue id
      # @return [BacklogKit::Response] No content response
      def add_issue_star(issue_id)
        post('stars', issue_id: issue_id)
      end

      # Add a star to an issue comment
      #
      # @param comment_id [Integer, String] Comment id
      # @return [BacklogKit::Response] No content response
      def add_issue_comment_star(comment_id)
        post('stars', comment_id: comment_id)
      end

      # Add a star to a wiki page
      #
      # @param wiki_id [Integer, String] Wiki page id
      # @return [BacklogKit::Response] No content response
      def add_wiki_star(wiki_id)
        post('stars', wiki_id: wiki_id)
      end

      # Add a star to a pull request
      #
      # @param pull_request_id [Integer, String] Pull request id
      # @return [BacklogKit::Response] No content response
      def add_pull_request_star(pull_request_id)
        post('stars', pull_request_id: pull_request_id)
      end

      # Add a star to a pull request comment
      #
      # @param pull_request_comment_id [Integer, String] Pull request comment id
      # @return [BacklogKit::Response] No content response
      def add_pull_request_comment_star(pull_request_comment_id)
        post('stars', pull_request_comment_id: pull_request_comment_id)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
backlog_kit-0.19.0 lib/backlog_kit/client/star.rb
backlog_kit-0.18.0 lib/backlog_kit/client/star.rb
backlog_kit-0.17.0 lib/backlog_kit/client/star.rb
backlog_kit-0.16.0 lib/backlog_kit/client/star.rb
backlog_kit-0.15.0 lib/backlog_kit/client/star.rb
backlog_kit-0.14.0 lib/backlog_kit/client/star.rb