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
- Host: GitHub
- URL: https://github.com/ccojocar/gh2es
- Owner: ccojocar
- Created: 2020-01-21T15:23:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T10:05:27.000Z (over 1 year ago)
- Last Synced: 2025-04-05T19:34:12.965Z (about 1 year ago)
- Topics: elasticsearch, github, issue-tracker, issues, kibana, search
- Language: Go
- Size: 15.8 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.