Skip to content

Commit

Permalink
Try fix rate-limit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Dec 22, 2022
1 parent 76e3089 commit a757cc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ jobs:
run: bundle exec rake build
env:
NO_CONTRACTS: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion lib/tasks/contributors.rake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ namespace :contributors do

require "octokit"
require "yaml"
client = Octokit::Client.new(auto_paginate: true)
options = { auto_paginate: true }
options[:access_token] = ENV["GITHUB_TOKEN"] if ENV["GITHUB_TOKEN"]
client = Octokit::Client.new(**options)
contributors = client.contributors("rubygems/rubygems", false)
contributors.reject!{|c| credited_elsewhere.include?(c[:login]) }
contributors.map! do |c|
Expand Down

0 comments on commit a757cc8

Please sign in to comment.