README.md

# Octokit

[![Build Status](https://img.shields.io/travis/lee-dohm/octokit.ex.svg)](https://travis-ci.org/lee-dohm/octokit.ex)
[![Package Version](https://img.shields.io/hexpm/v/octokit.svg)](https://atom.io/packages/octokit)

An Elixir library for accessing the [GitHub API](https://developer.github.com/v3/).

Like all versions of Octokit, this project does its best to conform to the community standards for the language it is written in and for. If there are places where this library does not conform, please [file an Issue](https://github.com/lee-dohm/octokit.ex/issues/new).

## Common Tasks

This project follows the [GitHub "scripts to rule them all" pattern](http://githubengineering.com/scripts-to-rule-them-all/). The contents of the `scripts` directory are scripts that cover all common tasks:

* `script/setup` — Performs first-time setup
* `script/update` — Performs periodic updating
* `script/test` — Runs automated tests
* `script/console` — Opens the development console

Other scripts that are available but not intended to be used directly by developers:

* `script/bootstrap` — Used to do a one-time install of all prerequisites for a development machine
* `script/cibuild` — Used to run automated tests in the CI environment

## Testing

### Mock API Responses

All mock API responses are stored in IEx `inspect` output for easy deserialization into native Elixir data structures. The format of the files in `test/fixtures` is:

* Commented out `HTTPoison.get!` API call used to retrieve the response
* Response object returned from the above API call

### Test Helpers for Fixtures and Mocks

In any `ExUnit.Case` using module, import `Test.Helpers`. See `test/test_helper.exs` for the current list of helpers and documentation.

## Copyright

Copyright © 2016 by [Lee Dohm](http://www.lee-dohm.com). See [LICENSE](https://raw.githubusercontent.com/lee-dohm/octokit.ex/master/LICENSE.md) for details.