k1LoW / tbls

tbls is a CI-Friendly tool for document a database, written in Go.
MIT License
3.32k stars 163 forks source link

Support GitHub App authentication for datasource #571

Closed kromiii closed 2 months ago

kromiii commented 2 months ago

When user specified a file on GitHub as datasource, tbls calls k1low/go-github-client for reading the GitHub content. This module supports authentication using GitHub Apps.

However, this module requires the repository and owner, which must be specified in the options. This PR adds a command to specify the repository and owner from the information in the tbls schema file.

It does not affect when user use GitHub token authentication.

I am a beginner in Go, so I don't know how to handle updates on go packages.