Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideService, ProvideRepositoryCount, ProvideGitConsumer, )
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
type CreationType ¶
type CreationType string
const ( CreationTypeCreate CreationType = "CREATE" CreationTypeImport CreationType = "IMPORT" )
type Event ¶
type Event struct {
Type EventType `json:"event"`
Category string `json:"category"`
Principal *types.PrincipalInfo `json:"user_id,omitempty"`
GroupID string `json:"group_id,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
Path string `json:"path"`
RemoteAddr string `json:"remote_addr"`
Properties map[Property]any `json:"properties,omitempty"`
}
type EventType ¶
type EventType string
const ( EventTypeRepositoryCreate EventType = "Repository create" EventTypeRepositoryCount EventType = "Repository count" EventTypeCommitCount EventType = "Commit count" EventTypeCreateCommit EventType = "Create commit" EventTypeCreateBranch EventType = "Create branch" EventTypeCreateTag EventType = "Create tag" EventTypeCreatePullRequest EventType = "Create pull request" EventTypeMergePullRequest EventType = "Merge pull request" EventTypeReviewPullRequest EventType = "Review pull request" EventTypeCreatePRComment EventType = "Create PR comment" EventTypeCreateBranchRule EventType = "Create branch rule" EventTypePRSuggestionApplied EventType = "Pull request suggestion applied" )
type Property ¶
type Property string
const ( PropertyRepositoryID Property = "repository_id" PropertyRepositoryName Property = "repository_name" PropertyRepositoryCreationType Property = "creation_type" PropertyPullRequestID Property = "pull_request_id" PropertyCommentIsReplied Property = "comment_is_replied" PropertyCommentContainsSuggestion Property = "contains_suggestion" PropertyMergeStrategy Property = "merge_strategy" PropertyRuleID Property = "rule_id" PropertyIsDefaultBranch Property = "is_default_branch" PropertyDecision Property = "decision" PropertyRepositories Property = "repositories" )
type RepositoryCount ¶
type RepositoryCount struct {
// contains filtered or unexported fields
}
func NewRepositoryCount ¶
func ProvideRepositoryCount ¶
func (*RepositoryCount) Handle ¶
func (c *RepositoryCount) Handle(ctx context.Context, _ string, _ job.ProgressReporter) (string, error)
Click to show internal directories.
Click to hide internal directories.