Sha256: 3501ff8e31cc442f448574c4ab683bf3e1145b8df233b04db7eaa64f9a36f673

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

# encoding: utf-8

module GithubCLI
  class PullRequest < API

    class << self

      def get(user, repo, number, params)
        github_api.pull_requests.pull_request user, repo, number, params
      end

      def list(user, repo, ref, params)
        github_api.pull_requests.pull_requests user, repo, ref, params
      end

      def create(user, repo, params)
        github_api.pull_requests.create_request user, repo, params
      end

      def update(user, repo, number, params)
        github_api.pull_requests.update_request user, repo, number, params
      end

      def commits(user, repo, number, params)
        github_api.pull_requests.commits user, repo, number, params
      end

      def files(user, repo, number, params)
        github_api.pull_requests.files user, repo, number, params
      end

      def merged(user, repo, number, params)
        github_api.pull_requests.merged user, repo, number, params
      end

      def merge(user, repo, number, params)
        github_api.pull_requests.merge user, repo, number, params
      end
    end

  end # PullRequest
end # GithubCLI

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_cli-0.2.1 lib/github_cli/apis/pull_request.rb
github_cli-0.2.0 lib/github_cli/apis/pull_request.rb
github_cli-0.1.3 lib/github_cli/apis/pull_request.rb