module PartyFoul
Constants
- VERSION
Attributes
additional_labels[RW]
api_endpoint[RW]
blacklisted_exceptions[RW]
branch[RW]
comment_limit[RW]
github[RW]
oauth_token[RW]
owner[RW]
processor[RW]
repo[RW]
title_prefix[RW]
web_url[RW]
Public Class Methods
configure() { |self| ... }
click to toggle source
The configure block for PartyFoul
. Use to initialize settings
PartyFoul.configure do |config| config.owner 'dockyard' config.repo 'test_app' config.oauth_token = ENV['oauth_token'] end
Will also setup for GitHub api connections
@param [Block]
# File lib/party_foul.rb, line 81 def self.configure(&block) yield self self.github ||= Octokit::Client.new access_token: oauth_token, api_endpoint: api_endpoint end
repo_path()
click to toggle source
The GitHub path to the repo Built using {.owner} and {.repo}
@return [String]
# File lib/party_foul.rb, line 58 def self.repo_path "#{owner}/#{repo}" end
repo_url()
click to toggle source
The url of the repository. Built using the {.web_url} and {.repo_path} values
@return [String]
# File lib/party_foul.rb, line 66 def self.repo_url "#{web_url}/#{repo_path}" end