|
5 | 5 | [](https://goreportcard.com/report/github.com/fluxcd/go-git-providers) |
6 | 6 | [](https://codecov.io/github/fluxcd/go-git-providers?branch=master) |
7 | 7 | [](https://github.com/fluxcd/go-git-providers/blob/master/LICENSE) |
8 | | -[](https://github.com/fluxcd/go-git-providers/graphs/contributors) |
9 | 8 | [](https://github.com/fluxcd/go-git-providers/releases/latest) |
10 | | -[](https://github.com/fluxcd/go-git-providers/blob/master/CONTRIBUTING.md) |
11 | 9 |
|
12 | | -[go-git-providers](https://pkg.go.dev/github.com/fluxcd/go-git-providers) is a general-purpose Go client for interacting with Git providers' APIs (e.g. GitHub, GitLab, Bitbucket). |
| 10 | +[go-git-providers](https://pkg.go.dev/github.com/fluxcd/go-git-providers) |
| 11 | +is a general-purpose Go client for interacting with Git providers' APIs. |
| 12 | + |
| 13 | +Supported providers: |
| 14 | + |
| 15 | +- GitHub API (GitHub.com and on-prem) |
| 16 | +- GitLab API (GitLab.com and on-prem) |
| 17 | +- Bitbucket Server API (on-prem) |
13 | 18 |
|
14 | 19 | ## Features |
15 | 20 |
|
@@ -172,17 +177,6 @@ See the following (automatically tested) examples: |
172 | 177 | - [github/example_organization_test.go](github/example_organization_test.go) |
173 | 178 | - [github/example_repository_test.go](github/example_repository_test.go) |
174 | 179 |
|
175 | | - |
176 | | -If you need to run `make test` for your fork/branch you may need to supply the following environment variables: |
177 | | -- GIT_PROVIDER_ORGANIZATION : For GitHub this should be an organization whereas for GitLab this should be a top-level group. As this environment variable is used for both test suites, the name of the GitHub organization must match the name of the GitLab top-level group. Also, this organization needs to have its repository default branch set to `main`. |
178 | | -- GIT_PROVIDER_USER : This should be the same username for both GitHub and GitLab. |
179 | | -- GITLAB_TEST_TEAM_NAME : An existing GitLab group. |
180 | | -- GITLAB_TEST_SUBGROUP : An existing GitLab subgroup of the GIT_PROVIDER_ORGANIZATION top-level group. |
181 | | -- GITPROVIDER_BOT_TOKEN : A GitHub token with `repo`, `admin:org` and `delete_repo` permissions. |
182 | | -- GITLAB_TOKEN: A GitLab token with `api` scope. |
183 | | -- TEST_VERBOSE: Set to '-v' to emit test output for debugging purposes |
184 | | -- CLEANUP_ALL: Set to delete all test repos after testing. |
185 | | - |
186 | 180 | ## Getting Help |
187 | 181 |
|
188 | 182 | If you have any questions about this library: |
|
0 commit comments