mirror of
https://github.com/status-im/migrate.git
synced 2025-02-18 22:26:31 +00:00
* 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{}
github
This driver is catered for those that want to source migrations from github.com. The URL scheme doesn't require a hostname, as it just simply defaults to github.com
.
github://user:personal-access-token@owner/repo/path#ref
URL Query | WithInstance Config | Description |
---|---|---|
user | The username of the user connecting | |
personal-access-token | An access token from Github (https://github.com/settings/tokens) | |
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 |