...

Text file src/github.com/golang-migrate/migrate/v4/source/github_ee/README.md

Documentation: github.com/golang-migrate/migrate/v4/source/github_ee

     1# github ee
     2
     3## GitHub Enterprise Edition
     4
     5This driver is catered for those who run GitHub Enterprise under private infrastructure.
     6
     7The below URL scheme illustrates how to source migration files from GitHub Enterprise.
     8
     9GitHub 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](https://help.github.com/en/enterprise/2.15/admin/installation/enabling-subdomain-isolation) recommends that you enable Subdomain isolation feature.
    10
    11`github-ee://user:personal-access-token@host/owner/repo/path?verify-tls=true#ref`
    12
    13| URL Query  | WithInstance Config | Description |
    14|------------|---------------------|-------------|
    15| user | | The username of the user connecting |
    16| personal-access-token | | Personal access token from your GitHub Enterprise instance |
    17| owner | | the repo owner |
    18| repo | | the name of the repository |
    19| path | | path in repo to migrations |
    20| ref | | (optional) can be a SHA, branch, or tag |
    21| verify-tls | | (optional) defaults to `true`. This option sets `tls.Config.InsecureSkipVerify` accordingly |

View as plain text