Add a script for generating changelogs and the resulting file for 0.1

This commit is contained in:
R. Tyler Croy 2015-03-13 12:47:40 -07:00
parent db57c35ae6
commit badf59aa8c
2 changed files with 70 additions and 0 deletions

35
CHANGELOG.md Normal file
View File

@ -0,0 +1,35 @@
# DeployDB Changelog
# 0.1.0
* [#27](https://github.com/lookout/deploydb/pull/27) - Fix for issue #23
* [#28](https://github.com/lookout/deploydb/issues/28) - Decouple docs generation from test tasks
* [#29](https://github.com/lookout/deploydb/issues/29) - The request should fail when creating an Artifact without a version
* [#33](https://github.com/lookout/deploydb/issues/33) - In the create artifact request, validate max length for group, name, version & sourceUrl
* [#36](https://github.com/lookout/deploydb/issues/36) - We need some ability to deserialize YAML into Models
* [#37](https://github.com/lookout/deploydb/pull/37) - Submitting some outstanding changes I had lying around
* [#40](https://github.com/lookout/deploydb/pull/40) - Stop generating groovy and asciidoctor docs when running tests
* [#43](https://github.com/lookout/deploydb/issues/43) - Expose Services via a read API
* [#45](https://github.com/lookout/deploydb/issues/45) - How DeployDb loads yaml-based/configuration-driven models
* [#47](https://github.com/lookout/deploydb/pull/47) - Add notes covering changes to webhooks and more service configs
* [#48](https://github.com/lookout/deploydb/issues/48) - Update Deployment Model to include Service, Promotion Status for the Artifact deployed
* [#52](https://github.com/lookout/deploydb/pull/52) - Initial cut at restructuring of APIs
* [#53](https://github.com/lookout/deploydb/issues/53) - Use yaml filename as a key (id) for Service Model instance
* [#59](https://github.com/lookout/deploydb/issues/59) - Expose Environments via REST APIs
* [#61](https://github.com/lookout/deploydb/issues/61) - Expose API to return the configured Promotions
* [#62](https://github.com/lookout/deploydb/pull/62) - Add read API for promotions
* [#63](https://github.com/lookout/deploydb/pull/63) - Defined environment model, backend for REST APIs, added spock tests
* [#64](https://github.com/lookout/deploydb/issues/64) - Add failure_strategy to Service Model
* [#66](https://github.com/lookout/deploydb/issues/66) - Model how pipeline looks like
* [#68](https://github.com/lookout/deploydb/issues/68) - Add Flow model to capture the state of the artifact deployment
* [#70](https://github.com/lookout/deploydb/pull/70) - Added failure_strategy to Service Model
* [#71](https://github.com/lookout/deploydb/issues/71) - Create a webhook notification for deployment created
* [#72](https://github.com/lookout/deploydb/issues/72) - Create a webhook notification for deployment started
* [#73](https://github.com/lookout/deploydb/issues/73) - Create a webhook notification for deployment completed
* [#75](https://github.com/lookout/deploydb/issues/75) - Update Deployment REST APIs as discussed in DeployDb WorkFlow
* [#76](https://github.com/lookout/deploydb/pull/76) - Refactored the deployment REST API as per the WorkFlow doc
* [#82](https://github.com/lookout/deploydb/issues/82) - Add Promotion status to Deployment
* [#83](https://github.com/lookout/deploydb/issues/83) - Incorporate workflow for all the internal and external triggers
* [#90](https://github.com/lookout/deploydb/issues/90) - Integration test/sanity check 0.1 for basic functionality
* [#91](https://github.com/lookout/deploydb/issues/91) - Release 0.1.0 to Bintray

35
changelog.rb Normal file
View File

@ -0,0 +1,35 @@
#!/usr/bin/env ruby
require 'json'
require 'net/https'
require 'uri'
def uri_for(project, milestone)
return URI("https://api.github.com/repos/lookout/#{project}/issues?state=closed&milestone=#{milestone}")
end
def changelog_for(project, milestone)
uri = uri_for(project, milestone)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
response = http.get(uri.request_uri)
raise "Status #{response.code}" unless response.code.to_i == 200
body = JSON.parse(response.body)
body.reverse.each do |issue|
puts "* [##{issue['number']}](#{issue['html_url']}) - #{issue['title']}"
end
end
print 'What milestone? > '
milestone = STDIN.gets.chomp
project = 'deploydb'
puts
puts "Computing changelog for '#{project}' and milestone '#{milestone}'"
puts
puts '-------------------'
changelog_for(project, milestone)