Sha256: 5dba5854aad460c3b12d7afc73c220016edd3909fa8689b5679e8150600eb8d5

Contents?: true

Size: 885 Bytes

Versions: 5

Compression:

Stored size: 885 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Commands::Statuses < Command

    namespace :status

    desc 'list <user> <repo> <sha>', 'Lists statuses for a <sha>'
    def list(user, repo, sha)
      Status.list user, repo, sha, options[:params], options[:format]
    end

    desc 'create <user> <repo> <sha>', 'Create a status'
    long_desc <<-DESC
      Inputs

      state - Required string - State of the status - can be one of pending, success, error, or failure.\n
      target_url - Optional string - Target url to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the ‘source’ of the Status. \n
      description - Optional string - Short description of the status\n
    DESC
    def create(user, repo, sha)
      Status.create user, repo, sha, options[:params], options[:format]
    end

  end # Statuses
end # GithubCLI

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
github_cli-0.5.7 lib/github_cli/commands/statuses.rb
github_cli-0.5.6 lib/github_cli/commands/statuses.rb
github_cli-0.5.5 lib/github_cli/commands/statuses.rb
github_cli-0.5.4 lib/github_cli/commands/statuses.rb
github_cli-0.5.3 lib/github_cli/commands/statuses.rb