This is a tool which allows to upload the issues from a GitHub repository into an Elasticsearch index.
You can install this tool with:
go get -u https://github.com/ccojocar/gh2es
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:
gh2es init --endpoint https://<elasticserach-addresss> --file=index.json --index=github
This will create an index which has the name github
with the properties described in the 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:
gh2es sync --endpoint https://<elasticsearch-address> --index=github --organisation=<github-org-name> --repository=<github-repository>
The tools will parse the Github token either from the GITHUB_TOKEN
environment variable, or from the configuration of the github/hub tool. This configuration is usually stored into ~/.config/hub
file.