Skip to content

Commit

Permalink
Merge pull request #150 from OpenGeoMetadata/149-clone-all-repos
Browse files Browse the repository at this point in the history
Add: a per_page param to OGM API URI
  • Loading branch information
thatbudakguy authored Apr 2, 2023
2 parents 1ebd133 + 92fcae0 commit 6b2fd2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
mkmf.log
.tool-versions
.byebug_history
.ruby-version
2 changes: 1 addition & 1 deletion lib/geo_combine/harvester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.denylist

# GitHub API endpoint for OpenGeoMetadata repositories
def self.ogm_api_uri
URI('https://api.github.com/orgs/opengeometadata/repos')
URI('https://api.github.com/orgs/opengeometadata/repos?per_page=1000')
end

def initialize(
Expand Down
6 changes: 6 additions & 0 deletions spec/lib/geo_combine/harvester_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,10 @@
expect(harvester.clone_all).to eq(2)
end
end

describe '#ogm_api_uri' do
it 'includes a per_page param' do
expect(described_class.send('ogm_api_uri').to_s).to include('per_page')
end
end
end

0 comments on commit 6b2fd2b

Please sign in to comment.