Created
March 17, 2014 17:40
-
-
Save rafaelfranca/9604341 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
require 'bundler' | |
Bundler.setup | |
require 'octokit' | |
require 'active_support' | |
require 'active_support/core_ext/date/calculations' | |
require 'active_support/core_ext/numeric/time' | |
REPOSITORIES = %w(spree/spree) | |
client = Octokit::Client.new(:netrc => true) | |
version = ARGV[0] | |
fail ArgumentError, 'Missing release version' unless version | |
message = <<MESSAGE | |
Hi team, | |
we just released Rails #{version}. To help us to find regression and make the final release | |
an awesome release for everyone, I'm here humbly asking you to test your project with this | |
Release Candidate. | |
We are planing the final release to #{3.days.from_now.to_date}, so it would be great if you test it before | |
this date. | |
If you find any regression please open an issue on GitHub mentioning me and with the title starting | |
with: | |
`[Regression #{version}]` | |
Thanks in advance. | |
MESSAGE | |
REPOSITORIES.each do |repository| | |
client.create_issue(repository, "Test this project with Rails #{version}", message) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment