deploy_log 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/deploy_log +6 -1
- data/lib/deploy_log/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: 37fb4a3ef58e8aca0b5d3178dadaad622e9f9c646ea2f1a381224432c645b50c
|
4
|
+
data.tar.gz: e2e3501b87860f186e0852d58a9bdd9594b8b428857a149a5c608d301d1580ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 532f9e3fcb53a923b7c637f54943b1b63fd8d003e340697752775fbdaad94c7f0a31e875fa8616974d5b8245737de6d37ccf6f69cec09663f86a24d7b5584ce3
|
7
|
+
data.tar.gz: 6292f3e74d800b622c6ef5f29215ee05d93ccd21effcf35bc69a698fa2ca69ca7b7f816f682b4289158d4d923e5e02c5e5133d6e19e530a1c696771f507cb95d
|
data/bin/deploy_log
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
require 'deploy_log'
|
5
5
|
|
6
|
-
start, finish, title, branch = nil
|
6
|
+
start, finish, title, branch, on = nil
|
7
7
|
|
8
8
|
OptionParser.new do |opt|
|
9
9
|
opt.on('-s', '--start=START', 'Start of date range') do |time|
|
@@ -14,6 +14,10 @@ OptionParser.new do |opt|
|
|
14
14
|
finish = Time.parse(time)
|
15
15
|
end
|
16
16
|
|
17
|
+
opt.on('-o', '--on=ON', 'Merged on a specific date') do |time|
|
18
|
+
on = Time.parse(time)
|
19
|
+
end
|
20
|
+
|
17
21
|
opt.on('-t', '--title=TITLE', 'Title of the PR you want') do |ti|
|
18
22
|
title = ti
|
19
23
|
end
|
@@ -30,6 +34,7 @@ end.parse!
|
|
30
34
|
|
31
35
|
model = DeployLog::Github::Deploys.new
|
32
36
|
model.merged_between(start, finish) if start
|
37
|
+
model.merged_on(on) if on
|
33
38
|
model.pr_title(title) if title
|
34
39
|
model.pr_for_branch(branch) if branch
|
35
40
|
model.merged_today if title.nil? && branch.nil? && start.nil? && finish.nil?
|
data/lib/deploy_log/version.rb
CHANGED