-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for running metrics against a particular git hash #188
base: main
Are you sure you want to change the base?
Conversation
…he filename containing a date.
s.cert_chain = ['certs/bf4.pem'] | ||
s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/ | ||
#s.cert_chain = ['certs/bf4.pem'] | ||
#s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing you didn't mean to include this in the PR, but I understand why you made it :)
…houldnt have been checked in commented out in the first place
I addressed many of the issues you brought up (thanks for the suggestions BTW). Let me know if there's anything else that I can take a look at. I may still try to abstract out the version control system if possible. |
Please rebase against master, amend to remove extraneous commits, and get the tests passing! |
@@ -55,20 +57,64 @@ def configure_metric(metric, metric_options) | |||
end | |||
end | |||
def configure_formatters(options) | |||
filename = options[:githash] # Set the filename for the output; nil is a valid value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a little misleading, no? Why not just do
metric_filename = options.fetch(:githash) { filename_timestamp(Time.now) }
def filename_timestamp(time)
time.strftime("%Y%m%d")
end
Let me know if you want to pair on this. I have a lot more comments. |
I've been thinking.. this functionality should probably use the git tooling included in Churn |
Adding git support to metric_fu to allow users to specify a git hash to run metric_fu against.
Saves the resulting yml file using the git hash as the filename. This can allow users to diff results across change lists.