No longer need the json gem
Moves the github API call inside a ruby_block to ensure the correct execution order is preserved