forge

package
v24.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL