gitx 2.17.0.pre.ci.98.1 → 2.17.0.pre.ci.101.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/gitx/cli/release_command.rb +1 -1
- data/spec/gitx/cli/release_command_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDFjYWU3YzcwNWVkY2Q0NzkwMzYwYTk0YTNlNGM0YmIwNDViYjYzNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTk1NzhkOWNjY2RhN2VlMDhiOThlOTRjNmFhOGYxNWNlZWYyZDZjMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2RlNTI0OTM4NTYyNGVmNTNiMGNkZTU3ZTU4MzVmNGE3MWY0YmMwODY4MTdi
|
10
|
+
MTY5NjM5ZjQxZjI0OWZhNTMyNzY3ZGFmOGI5MWFjYjE2Y2U3Yzg5MmNiZjY1
|
11
|
+
MmRiMGE2MTg4OGQ4OGI1OWUxMGRjZDI4ZjAxMmYzNWY3YWE1NGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmY4OWNlOGRiZGMyZjE4MzUzZTg2NmQ2NWU2NzhiNzg0YjY1YjkwZjBmMjZh
|
14
|
+
YzEyNzBlMzFkOWVlNWU1ZWViODg0ZWYyYTlhZWQ5ZjZiOTNmZTE0NzZjZmI5
|
15
|
+
ZTFiYjljNjc4ZjJkYzE1NTE2ZjcwZjQzOTM0MjMxY2JlODA1Mjg=
|
@@ -12,7 +12,7 @@ module Gitx
|
|
12
12
|
desc 'release', 'release the current branch to production'
|
13
13
|
method_option :cleanup, type: :boolean, desc: 'cleanup merged branches after release'
|
14
14
|
def release(branch = nil)
|
15
|
-
return unless yes?("Release #{current_branch.name} to
|
15
|
+
return unless yes?("Release #{current_branch.name} to #{Gitx::BASE_BRANCH}? (y/n)", :green)
|
16
16
|
|
17
17
|
branch ||= current_branch.name
|
18
18
|
assert_not_protected_branch!(branch, 'release')
|
@@ -35,7 +35,7 @@ describe Gitx::Cli::ReleaseCommand do
|
|
35
35
|
expect(repo).to receive(:workdir).and_return(temp_dir)
|
36
36
|
expect(cli).to receive(:execute_command).with(Gitx::Cli::UpdateCommand, :update)
|
37
37
|
|
38
|
-
expect(cli).to receive(:yes?).with('Release feature-branch to
|
38
|
+
expect(cli).to receive(:yes?).with('Release feature-branch to master? (y/n)', :green).and_return(true)
|
39
39
|
expect(cli).to receive(:yes?).with('Branch status is currently: failure. Proceed with release? (y/n)', :red).and_return(false)
|
40
40
|
allow(cli).to receive(:authorization_token).and_return(authorization_token)
|
41
41
|
|
@@ -148,7 +148,7 @@ describe Gitx::Cli::ReleaseCommand do
|
|
148
148
|
|
149
149
|
expect(cli).to receive(:execute_command).with(Gitx::Cli::UpdateCommand, :update).twice
|
150
150
|
|
151
|
-
expect(cli).to receive(:yes?).with('Release feature-branch to
|
151
|
+
expect(cli).to receive(:yes?).with('Release feature-branch to master? (y/n)', :green).and_return(true)
|
152
152
|
expect(cli).to receive(:yes?).with('Branch status is currently: pending. Proceed with release? (y/n)', :red).and_return(true)
|
153
153
|
|
154
154
|
expect(cli).to receive(:run_cmd).with('git checkout feature-branch').ordered
|