github.com/mosop/gh

Yet another Crystal library for accessing the GitHub API.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  gh:
    github: mosop/gh
    version: ~> 0.2.2

Then run:

shards install

shard.yml

Crystal
0.20.5
License
MIT
Author
mosop

Dependencies

Runtime Dependencies

Development Dependencies

README

Gh

Yet another Crystal library for accessing the GitHub API.

Experimental.

Build Status

Installation

Add this to your application's shard.yml:

dependencies:
  gh:
    github: mosop/gh

Code Examples

Creating Pull Requests

Gh::Pull::Create
  .title("Creating Pull Requests")
  .head("john:create_pull_requests")
  .base("master")
  .body(<<-EOS
  Hi @mosop,

  I added the Gh::Pull class for creating pull requests.

  Thanks.
  EOS
  )
  .create! "mosop", "gh"

Usage

require "gh"

and see Code Examples.