Sha256: 1a10d6d6e074dd5b91c850021eaa06bad33e828e6ac0d720d35126f76a7c8376
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
module Git class Pr class GitProperties 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git-pr-0.0.2 | lib/git/pr/git_properties.rb |