Sha256: d597058993707285cf0edb469e8b176512476e218cac4b0391ecdf3d37b673fa

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

# Hub Link

When you just want the loop through all the raw pull request and review data from GitHub
(for exporting metrics f.ex).

## Usage

Add this line to your application's Gemfile:

 ```ruby
 gem "hub_link"
```

Then you can do:

```ruby
stream = HubLink::Stream.new("balvig/hub_link", since: 3.months.ago)

stream.in_batches do |batch|
  batch.review_requests # => [{ digest: "a45bfa...", reviewer: "balvig", ... }]
  batch.reviews # => [{ id: 54, reviewer: "balvig", approval: true, ... }]
  batch.prs # => [{ id: 34, merge_time: 6400, ... }]
end
```

Hub Link will loop through the API one page at a time.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/balvig/hub_link. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hub_link-0.18.0 README.md
hub_link-0.15.0 README.md
hub_link-0.13.0 README.md