Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env ruby
repo = ENV['REPO']
puts ARGF.read.strip.gsub(/(\s+|\A)#(\d+)\b/m) {|m| "#{$1}#{repo}##{$2}" }
@aereal

This comment has been minimized.

Copy link
Owner Author

@aereal aereal commented Dec 9, 2019

usage:

git filter-branch -f --msg-filter 'env OWNER=... REPO=... path/to/update-issue-refs.rb' --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment