forgejo

package
v3.11.38 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GhostUserID     = int64(-1)
	GhostUserName   = "Ghost"
	ActionsUserID   = int64(-2)
	ActionsUserName = "forgejo-actions"
)
View Source
const RepositoryNameWiki = "vcs.wiki"

Variables

View Source
var (
	ForgejoVersion130 = version.Must(version.NewVersion("13.0.0"))

	ForgejoVersionNotFound = version.Must(version.NewVersion("1.0.0"))
)
View Source
var PathConverters = []struct {
	Fixtures []string
	F3ToURL  f3ToURLConverter
	URLToF3  urlToF3Converter
}{
	{
		Fixtures: []string{"/forge/organizations"},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
	{
		Fixtures: []string{"/forge/organizations/3330001/teams"},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
	{
		Fixtures: []string{"/forge/users"},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
	{
		Fixtures: []string{"/forge/users/10111/projects/74823/issues/1234567/attachments/939393"},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
	{
		Fixtures: []string{
			"/forge/organizations/3330001",
			"/forge/users/10111",
		},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
	{
		Fixtures: []string{
			"/forge/users/10111/projects/74823/issues/1234567",
		},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
	{
		Fixtures: []string{
			"/forge/users/10111/projects/74823/pull_requests/2222",
		},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
	{
		Fixtures: []string{
			"/forge/users/10111/projects/74823/issues/1234567/comments/1111999",
		},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
	{
		Fixtures: []string{
			"/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593/reviewcomments/9876543",
		},
		F3ToURL: f3ToURLConverter{
			// contains filtered or unexported fields
		},
		URLToF3: urlToF3Converter{
			// contains filtered or unexported fields
		},
	},
}

Functions

func WhiteTestInjectOrgLabelInIssue added in v3.11.16

func WhiteTestInjectOrgLabelInIssue(t *testing.T, issueNode generic.NodeInterface)

Types

type BuildOwnerPathFunc added in v3.11.28

type BuildOwnerPathFunc func(ctx context.Context, tree generic.TreeInterface, owner string) generic.Path

type BuildProjectPathFunc added in v3.11.28

type BuildProjectPathFunc func(ctx context.Context, tree generic.TreeInterface, owner, project string) generic.Path

type ConverterURLAndF3 added in v3.11.28

type ConverterURLAndF3 interface {
	logger.Interface

	GetTree() generic.TreeInterface
	SetTree(generic.TreeInterface)

	GetConverterUUIDAndAttachment() ConverterUUIDAndAttachment
	SetConverterUUIDAndAttachment(ConverterUUIDAndAttachment)

	GetBuildOwnerPath() BuildOwnerPathFunc
	SetBuildOwnerPath(BuildOwnerPathFunc)

	GetBuildProjectPath() BuildProjectPathFunc
	SetBuildProjectPath(BuildProjectPathFunc)

	GetGetReviewIDByReviewCommentID() GetReviewIDByReviewCommentIDFunc
	SetGetReviewIDByReviewCommentID(GetReviewIDByReviewCommentIDFunc)

	F3PathToURLPath(ctx context.Context, f3PathString string) string
	URLPathToF3Path(ctx context.Context, urlPath string) string
}

func NewConverterURLAndF3 added in v3.11.28

func NewConverterURLAndF3() ConverterURLAndF3

type ConverterUUIDAndAttachment added in v3.11.28

type ConverterUUIDAndAttachment interface {
	UUIDToAttachment(context.Context, string) (string, bool)
	AttachmentToUUID(context.Context, generic.Path) (string, bool)

	Add(uuid, path string)
}

func NewConverterUUIDAndAttachment added in v3.11.28

func NewConverterUUIDAndAttachment() ConverterUUIDAndAttachment

type GetReviewIDByReviewCommentIDFunc added in v3.11.28

type GetReviewIDByReviewCommentIDFunc func(ctx context.Context, tree generic.TreeInterface, pullRequestPath generic.Path, reviewCommentID string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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