Sha256: 5c44cf85bb093e4bea4012043e778421bf4929986cb0a7333a5539d800b3b450
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
module HubHelper def self.get_pull_number(comment) if comment[:pull_request] return comment[:pull_request][:number] elsif comment[:issue_url] return comment[:issue_url].split('/')[-1] elsif comment[:pull_request_url] return comment[:pull_request_url].split('/')[-1] else return nil end end def self.comment_setup(comment, repo, kind) comment[:repo_id] = repo.id comment[:pull_number] = get_pull_number(comment) comment[:kind] = kind return comment end def self.pull_setup(pull_request) pull_request[:repository] = pull_request[:base][:repo] return pull_request end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hubstats-0.0.5 | lib/hub_helper.rb |