migrate/source/github_ee
Kasparas Galdikas 7c76166697 Github Enterprise support (#234)
* exported Github struct fields and ReadDirectory method

* github ee implementation, tests and docs

* build fixes

* Github Enterprise API endpoint based on docs

* addressing PR comments

* code review

* make linter happy

* parseBool() takes fallback

* pr comments

* tweaks to Config{}
2019-06-16 12:48:01 -07:00
..
.gitignore Github Enterprise support (#234) 2019-06-16 12:48:01 -07:00
README.md Github Enterprise support (#234) 2019-06-16 12:48:01 -07:00
github_ee.go Github Enterprise support (#234) 2019-06-16 12:48:01 -07:00
github_ee_test.go Github Enterprise support (#234) 2019-06-16 12:48:01 -07:00

README.md

github ee

Github Enterprise Edition

This driver is catered for those who run Github Enterprise under private infrastructure.

The below URL scheme illustrates how to source migration files from Github Enterprise.

Github client for Go requires API and Uploads endpoint hosts in order to create an instance of Github Enterprise Client. We're making an assumption that the API and Uploads are available under https://api.* and https://uploads.* respectively. Github Enterprise Installation Guide recommends that you enable Subdomain isolation feature.

github-ee://user:personal-access-token@host/owner/repo/path?verify-tls=true#ref

URL Query WithInstance Config Description
user The username of the user connecting
personal-access-token Personal access token from your Github Enterprise instance
owner the repo owner
repo the name of the repository
path path in repo to migrations
ref (optional) can be a SHA, branch, or tag
verify-tls (optional) defaults to true. This option sets tls.Config.InsecureSkipVerify accordingly