Skip to content

Instantly share code, notes, and snippets.

@rafaelfranca
Created March 17, 2014 17:40
Show Gist options
  • Save rafaelfranca/9604341 to your computer and use it in GitHub Desktop.
Save rafaelfranca/9604341 to your computer and use it in GitHub Desktop.
#!/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