An open API service indexing awesome lists of open source software.

https://github.com/ccojocar/gh2es

Tool to upload the GitHub issues from a repository into an Elasticsearch index
https://github.com/ccojocar/gh2es

elasticsearch github issue-tracker issues kibana search

Last synced: 9 months ago
JSON representation

Tool to upload the GitHub issues from a repository into an Elasticsearch index

Awesome Lists containing this project

README

          

# gh2es

This is a tool which allows to upload the issues from a GitHub repository into an Elasticsearch index.

## Installation

You can install this tool with:

```sh
go get -u https://github.com/ccojocar/gh2es
```

## Usage

The Elasticsearch index needs to be initialised first. It is recommended to keep one index per GitHub repository. You can achieve this by running the following command:

```sh
gh2es init --endpoint https:// --file=index.json --index=github

```

This will create an index which has the name `github` with the properties described in the [index.json](index.json) file.

The issues can now be synced up from a GitHub repository into the index which has just been created. You can do this by running:

```sh
gh2es sync --endpoint https:// --index=github --organisation= --repository=
```

## GitHub Authentication

The tools will parse the Github token either from the `GITHUB_TOKEN` environment variable, or from the configuration of the [github/hub](https://github.com/github/hub) tool. This configuration is usually stored into `~/.config/hub` file.