-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Connect #28 begin notional plan for git note/history storage
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module DebtCeiling | ||
class ArcheologicalDig | ||
|
||
def initialize(path='.', opts={}) | ||
selected_git_commits(path) do |commit| | ||
checkout_commit(commit) | ||
next if config_note_present_on_commit(commit) | ||
result = Audit.new(opts.merge(skip_report: true, warn_only: true, preconfigured: true)) | ||
create_note_on_commit(result, commit) | ||
end | ||
end | ||
|
||
def selected_git_commits(path) | ||
[].each do |x| | ||
yield x | ||
end | ||
end | ||
|
||
def checkout_commit(commit) | ||
end | ||
|
||
def config_note_present_on_commit(commit) | ||
end | ||
|
||
def create_note_on_commit(result, commit) | ||
end | ||
|
||
end | ||
end |