jenkinsci / jenkinsci/github-branch-source-plugin
[JENKINS-58971] GitHub Branch Source Plugin allow api.github.com proxy configuration
- Dominant language
- Java
- Stars
- 217
- Forks
- 398
- Avg merge
- 30m
- Merged PRs (30d)
- 1
Description
You can configure a GitHub Enterprise Server for the GitHub Branch Source Plugin.
We'd like to configure a proxy for api.github.com/github.com that looks like my-github-proxy.com.
This URL is normalized as a GitHub Enterpise Server, with any trailing slashes removed:
And this causes `getRepositoryUrl` to create a URL like `my-github-proxy.comOrganization/Repo` instead of `my-github-proxy.com/Organization/Repo`:
It would be great if we could either not normalize URLs like this, or allow for specifying both a checkout url and an api url.
---
Originally reported by julianvmodesto, imported from: GitHub Branch Source Plugin allow api.github.com proxy configuration
Raw content of original issue
You can configure a GitHub Enterprise Server for the GitHub Branch Source Plugin.
We'd like to configure a proxy for api.github.com/github.com that looks like my-github-proxy.com.
This URL is normalized as a GitHub Enterpise Server, with any trailing slashes removed:
And this causes `getRepositoryUrl` to create a URL like `my-github-proxy.comOrganization/Repo` instead of `my-github-proxy.com/Organization/Repo`:It would be great if we could either not normalize URLs like this, or allow for specifying both a checkout url and an api url.
Contributor guide
Assessment
This issue has not been assessed yet.