Sha256: a07db817c48c7cafb01077fb25519d6653c345964b025012e5c02981ec4c36f0

Contents?: true

Size: 831 Bytes

Versions: 6

Compression:

Stored size: 831 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Issue < API

    class << self

      def all(params, format)
        output format do
          github_api.issues.list params
        end
      end

      def all_repo(user, repo, params, format)
        output format do
          github_api.issues.list_repo user, reop, params
        end
      end

      def get(user, repo, id, params, format)
        output format do
          github_api.issues.get user, repo, id, params
        end
      end

      def create(user, repo, params, format)
        output format do
          github_api.issues.create user, repo, params
        end
      end

      def edit(user, repo, id, params, format)
        output format do
          github_api.issues.edit user, repo, id, params
        end
      end
    end

  end # Issue
end # GithubCLI

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
github_cli-0.4.3 lib/github_cli/apis/issue.rb
github_cli-0.4.2 lib/github_cli/apis/issue.rb
github_cli-0.4.1 lib/github_cli/apis/issue.rb
github_cli-0.4.0 lib/github_cli/apis/issue.rb
github_cli-0.3.1 lib/github_cli/apis/issue.rb
github_cli-0.3.0 lib/github_cli/apis/issue.rb