Documentation
¶
Overview ¶
Package forge enables Git Town to interact with forges like GitHub, GitLab, Bitbucket, Gitea, or Forgejo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
func Detect(remoteURL giturl.Parts, userOverride Option[forgedomain.ForgeType]) Option[forgedomain.DetectedForgeType]
func NewConnector ¶
func NewConnector(args NewConnectorArgs) (Option[forgedomain.Connector], Option[forgedomain.DetectedForgeType], error)
NewConnector provides an instance of the forge connector to use based on the given gitConfig.
Types ¶
type NewConnectorArgs ¶
type NewConnectorArgs struct {
Backend subshelldomain.Querier
BitbucketAPIToken Option[forgedomain.BitbucketAPIToken]
BitbucketUsername Option[forgedomain.BitbucketUsername]
BrowserEnabled browserdomain.BrowserEnabled
BrowserExecutable Option[browserdomain.BrowserExecutable]
ConfigDir configdomain.RepoConfigDir
ForgejoToken Option[forgedomain.ForgejoToken]
ForgeType Option[forgedomain.ForgeType]
Frontend subshelldomain.Runner
GiteaToken Option[forgedomain.GiteaToken]
GithubConnectorType Option[forgedomain.GithubConnectorType]
GithubToken Option[forgedomain.GithubToken]
GitlabConnectorType Option[forgedomain.GitlabConnectorType]
GitlabToken Option[forgedomain.GitlabToken]
Log print.Logger
RemoteURL Option[giturl.Parts]
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package azuredevops connects to Azure Devops.
|
Package azuredevops connects to Azure Devops. |
|
Package bitbucketcloud connects to Bitbucket Cloud.
|
Package bitbucketcloud connects to Bitbucket Cloud. |
|
Package bitbucketdatacenter connects to BitBucket DataCenter.
|
Package bitbucketdatacenter connects to BitBucket DataCenter. |
|
Package forgedomain provides the domain model for forges.
|
Package forgedomain provides the domain model for forges. |
|
Package forgejo connects to Forgejo instances including codeberg.org.
|
Package forgejo connects to Forgejo instances including codeberg.org. |
|
Package gh connects to GitHub via the "gh" CLI tool.
|
Package gh connects to GitHub via the "gh" CLI tool. |
|
Package gitea connects to gitea instances.
|
Package gitea connects to gitea instances. |
|
Package github connects to GitHub.
|
Package github connects to GitHub. |
|
Package gitlab connects to GitLab.
|
Package gitlab connects to GitLab. |
|
Package glab connects to GitLab via the "glab" CLI app.
|
Package glab connects to GitLab via the "glab" CLI app. |
Click to show internal directories.
Click to hide internal directories.