Load gems with bundler in script/github_pr_errors

It makes running the script more deterministic

It also prevents warnings like `WARN: Unresolved or ambiguous specs during Gem::Specification.reset` to be displayed when there are multiple versions of the same gem in the load path.

[skip ci]
pull/11191/head
Christophe Bliard 2 years ago
parent eb5152b1b5
commit 48289e2c77
No known key found for this signature in database
GPG Key ID: 2BC07603210C3FA4
  1. 4
      script/github_pr_errors

@ -1,5 +1,9 @@
#!/usr/bin/env ruby
require 'rubygems'
require 'bundler'
Bundler.setup(:default, :development)
require 'pathname'
require 'json'
require 'rest-client'

Loading…
Cancel
Save