Use first SHA for last tag

Rather than having the last tag be an empty husk, generate a full
changelog link using the first sha from the repository.

Signed-off-by: Tom Duffield <tom@chef.io>
This commit is contained in:
Tom Duffield
2016-11-19 23:15:26 -06:00
committed by Hunter Haugen
parent f57b4c283d
commit 174baec266
5 changed files with 38 additions and 5 deletions

View File

@@ -526,4 +526,18 @@ describe GitHubChangelogGenerator::OctoFetcher do
end
end
end
describe "#commits_before" do
context "when API is valid", :vcr do
let(:start_time) { Time.parse("Wed Mar 4 18:47:17 2015 +0200") }
subject do
fetcher.commits_before(start_time)
end
it "returns commits" do
expect(subject.last["sha"]).to eq("4c2d6d1ed58bdb24b870dcb5d9f2ceed0283d69d")
end
end
end
end

File diff suppressed because one or more lines are too long