Sha256: c5fd89c03c6abc80442b69ea8ed973065a428efac8c61daafc585054bdc04c16

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

module Brief::GithubClient
  class RepositoryLabels < Request
    requires :org, :repo

    def endpoint
      "repos/#{ org }/#{ repo }/labels"
    end

    def stage_labels
      @stage_labels ||= all.select {|label| label.name && label.name.match(/^s:/) }
    end

    def priority_labels
      @priority_labels ||= all.select {|label| label.name && label.name.match(/^p:/) }
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brief-0.0.5 lib/brief/github_client/repository_labels.rb
brief-0.0.4 lib/brief/github_client/repository_labels.rb
brief-0.0.3 lib/brief/github_client/repository_labels.rb
brief-0.0.2 lib/brief/github_client/repository_labels.rb