autogitc 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/autogitc +13 -6
- 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: 52e7d94f98de52c902808baecc724449f56128cf85a6b9a308892139789cb80d
|
4
|
+
data.tar.gz: da9da262b2e2e597cdbe7f273b1c8def5df7bac9bfcdad7ace272fb124b8a8fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a2f05c942e884654eb3defa7b689f4bc022bdbc025742e5c9def0424ba9090ac54153f5337ea27f778d953d33418bda80bc41b57f8e9a9373f5d6f5da86eda
|
7
|
+
data.tar.gz: 95aaf9bfab1898e1104c341e695f0a458669603e3d4ba5f75589a4ccaf466fe154b06a715a92537a8efa235ee3eee0d0a9817791d19bb42fea07a94f9c8bfc0b
|
data/bin/autogitc
CHANGED
@@ -3,6 +3,12 @@ require 'bundler/setup'
|
|
3
3
|
require_relative '../lib/commit_generator'
|
4
4
|
require_relative '../lib/pr_template_generator'
|
5
5
|
|
6
|
+
if ARGV.include?('--version')
|
7
|
+
gemspec = Gem::Specification.load('autogitc.gemspec')
|
8
|
+
puts "autogitc version #{gemspec.version}"
|
9
|
+
exit
|
10
|
+
end
|
11
|
+
|
6
12
|
if ARGV.include?('pr')
|
7
13
|
base_branch_arg = ARGV.find { |arg| arg.start_with?('--base=') }
|
8
14
|
base_branch = base_branch_arg ? base_branch_arg.split('=').last : 'main'
|
@@ -10,10 +16,11 @@ if ARGV.include?('pr')
|
|
10
16
|
|
11
17
|
puts 'Running PR template generator...'
|
12
18
|
PrTemplateGenerator.main(base_branch: base_branch)
|
13
|
-
|
14
|
-
no_commit = ARGV.include?('--nocommit') || ARGV.include?('--nc')
|
15
|
-
must_have_text = ARGV.find { |arg| arg.start_with?('--text=') }&.split('=')&.last
|
16
|
-
|
17
|
-
puts 'Running autogitc...'
|
18
|
-
CommitGenerator.main(no_commit: no_commit, must_have_text: must_have_text)
|
19
|
+
exit
|
19
20
|
end
|
21
|
+
|
22
|
+
no_commit = ARGV.include?('--nocommit') || ARGV.include?('--nc')
|
23
|
+
must_have_text = ARGV.find { |arg| arg.start_with?('--text=') }&.split('=')&.last
|
24
|
+
|
25
|
+
puts 'Running autogitc...'
|
26
|
+
CommitGenerator.main(no_commit: no_commit, must_have_text: must_have_text)
|