repository

package
v0.0.0-...-c09d977 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func New

func New(rootCtx context.Context, conn *mongo.Client, databaseName string) (*Repository, error)

func (*Repository) CommitByID

func (r *Repository) CommitByID(id string) (*ds.Commit, error)

func (*Repository) CommitByProject

func (r *Repository) CommitByProject(projectID int) ([]*ds.Commit, error)

func (*Repository) MergeRequestByID

func (r *Repository) MergeRequestByID(id int) (*ds.MergeRequest, error)

func (*Repository) MergeRequestsByAuthor

func (r *Repository) MergeRequestsByAuthor(authorID []int) ([]*ds.MergeRequest, error)

func (*Repository) MergeRequestsByProject

func (r *Repository) MergeRequestsByProject(projectID int) ([]*ds.MergeRequest, error)

func (*Repository) MergeRequestsByReviewer

func (r *Repository) MergeRequestsByReviewer(reviewerID []int) ([]*ds.MergeRequest, error)

func (*Repository) PolicyMetadata

func (r *Repository) PolicyMetadata(mr *ds.MergeRequest, team *ds.Team, policy ds.PolicyName) (bson.Raw, error)

func (*Repository) Projects

func (r *Repository) Projects() ([]*ds.Project, error)

func (*Repository) Teams

func (r *Repository) Teams() ([]*ds.Team, error)

func (*Repository) UpdatePolicyMetadata

func (r *Repository) UpdatePolicyMetadata(mr *ds.MergeRequest, team *ds.Team, policy ds.PolicyName, d bson.Raw) error

func (*Repository) UpsertCommit

func (r *Repository) UpsertCommit(commit *ds.Commit) error

func (*Repository) UpsertMergeRequest

func (r *Repository) UpsertMergeRequest(mr *ds.MergeRequest) error

func (*Repository) UserBySlackID

func (r *Repository) UserBySlackID(slackID string) (*ds.User, *ds.Team, error)

Jump to

Keyboard shortcuts

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