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 BuildProjectPathFunc ¶ added in v3.11.28
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
Source Files
¶
- attachment.go
- attachments.go
- comment.go
- comments.go
- common.go
- container.go
- forge.go
- issue.go
- issues.go
- label.go
- labels.go
- labels_test_white.go
- main.go
- milestone.go
- milestones.go
- options.go
- organization.go
- organizations.go
- project.go
- projects.go
- pullrequest.go
- pullrequests.go
- reaction.go
- reactions.go
- release.go
- releases.go
- repositories.go
- repository.go
- review.go
- reviewcomment.go
- reviewcomments.go
- reviews.go
- root.go
- team.go
- teammember.go
- teammembers.go
- teamproject.go
- teamprojects.go
- teams.go
- topics.go
- tree.go
- url_f3.go
- user.go
- users.go
- uuid_attachment.go
Click to show internal directories.
Click to hide internal directories.