Skip to content

Latest commit

 

History

History
155 lines (122 loc) · 4.43 KB

README.inc.md

File metadata and controls

155 lines (122 loc) · 4.43 KB

Gitty

A client for the GitHub REST API v3, written in Bash.

Installation

A reasonably sane GNU environment is assumed to be at hand. More specifically, you need:

  • Bash (of course)
  • GNU Coreutils
  • GNU grep, sed, awk
  • curl
  • the jq command-line JSON processor
  • Make

To run the test suite, you will need Sam Stephenson's Bash Automated Testing System.

To check for proper programming, you will need ShellCheck.

Configuration

Authentication

The library supports both basic and OAuth authentication.

Basic authentication is supported through the environment variable GITTY_API_BASIC_AUTH, which must contain the username.

OAuth authentication, on the other hand, is supported through the environment variable GITTY_API_OAUTH_TOKEN.

User agent

All API requests MUST include a valid User-Agent header. The library supports a custom header through the environment variable GITTY_USER_AGENT.

Similar Projects

Implemented Parts

The active links represent implemented parts of the full API.