git-harvest 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/harvest/credentials_manager.rb +2 -2
- data/lib/harvest/vcs.rb +3 -1
- data/lib/harvest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 550a9af8c3cddb359fa65df43f88fd5bef3377424bdb77d85298a504b602aceb
|
4
|
+
data.tar.gz: ff25b233270ebbbc7c023b3f8b82fae94bb24a749bac1acc04cc5463c2105646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6af914eb42da051a0a538496013c8161d21d730e329bedaabf8b7f45d1c5b9d74d1d39a7aeb65e22fd9264a73870fb150bf9a418247da97afd71413553ca41c1
|
7
|
+
data.tar.gz: 60035bf15f26fd27f840446d419f36ca28d9bd665374b1cb50cf807fc9aa37da99be78b7cd39f266753e4e891818bb0ecafcfa26c29d90c405dad239a2cf805e
|
@@ -16,8 +16,8 @@ module Harvest
|
|
16
16
|
say "========== JIRA Integration =============", Thor::Shell::Color::GREEN
|
17
17
|
say 'Fetch or create JIRA API credentials at https://id.atlassian.com/manage/api-tokens', Thor::Shell::Color::GREEN
|
18
18
|
|
19
|
-
project_code = ask "Enter JIRA Project code (eg.
|
20
|
-
project_url = ask "Enter JIRA project Base URL (eg. https://
|
19
|
+
project_code = ask "Enter JIRA Project code (eg. ABC): ", Thor::Shell::Color::RED, :bold
|
20
|
+
project_url = ask "Enter JIRA project Base URL (eg. https://XXXXXXX.atlassian.net): ", Thor::Shell::Color::RED, :bold
|
21
21
|
email = ask "Enter JIRA email: ", Thor::Shell::Color::RED, :bold
|
22
22
|
access_token = ask "Enter JIRA access token: ", Thor::Shell::Color::RED, :bolds
|
23
23
|
|
data/lib/harvest/vcs.rb
CHANGED
@@ -3,7 +3,9 @@ module Harvest
|
|
3
3
|
attr_reader :current_branch, :project_code
|
4
4
|
|
5
5
|
def self.current_project
|
6
|
-
`git config --local remote.origin.url
|
6
|
+
remote_url = `git config --local remote.origin.url`.strip
|
7
|
+
|
8
|
+
URI(remote_url).path.split('/').last.gsub('.git', '')
|
7
9
|
end
|
8
10
|
|
9
11
|
def initialize(project_code)
|
data/lib/harvest/version.rb
CHANGED