Sha256: c9ae93710a7a26b5999727a1180d71182e86c9ab37afb39bf2f98b21efdc6523
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
module Git class Pr class GitProperties def api_endpoint `git config --get github.apiEndpoint`.chomp end def api_token `git config --get github.token`.chomp end def base_branch 'master' end def current_branch `git symbolic-ref HEAD`.split('/').last.chomp end def repository `git config --get remote.origin.url`.split(':').last.sub(/\.git/, '').chomp end def login `git config --get github.user`.chomp end def repository_profile(profile) `git config --get-all pr.repository_profile.#{profile}`.split(/\n/) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git-pr-0.0.4 | lib/git/pr/git_properties.rb |
git-pr-0.0.3 | lib/git/pr/git_properties.rb |