gitlab_activity

package
v0.0.0-...-5643740 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SessionStoreKey for cla-gitlab
	SessionStoreKey = "cla-gitlab"
)

Variables

This section is empty.

Functions

func Configure

func Configure(api *operations.EasyclaAPI, service Service, gitlabOrgService gitlab_organizations.ServiceInterface, eventService events.Service, gitLabApp *gitlab_api.App, signService gitlab_sign.Service, contributorConsoleV2Base string, sessionStore *dynastore.Store)

func GetFullSignURL

func GetFullSignURL(gitlabOrganizationID string, gitlabRepositoryID string, mrID string) string

func PrepareMrCommentContent

func PrepareMrCommentContent(missingUsers []*gatedGitlabUser, signedUsers []*gitlab.User, signURL string) string

Types

type ProcessMergeActivityInput

type ProcessMergeActivityInput struct {
	ProjectName      string
	ProjectPath      string
	ProjectNamespace string
	ProjectID        int
	MergeID          int
	RepositoryPath   string
	LastCommitSha    string
}

ProcessMergeActivityInput is used to pass the data needed to trigger a gitlab mr check

type Service

type Service interface {
	ProcessMergeCommentActivity(ctx context.Context, secretToken string, commentEvent *gitlab.MergeEvent) error
	ProcessMergeOpenedActivity(ctx context.Context, secretToken string, mergeEvent *gitlab.MergeEvent) error
	ProcessMergeActivity(ctx context.Context, secretToken string, input *ProcessMergeActivityInput) error
	IsUserApprovedForSignature(ctx context.Context, f logrus.Fields, corporateSignature *models.Signature, user *models.User, gitlabUser *gitlab.User) bool
}

func NewService

func NewService(gitRepository repositories.RepositoryInterface, gitV2Repository gitV2Repositories.RepositoryInterface, usersRepository users.UserRepository, signaturesRepository signatures.SignatureRepository, projectsCLAGroupsRepository projects_cla_groups.Repository,
	companyRepository company.IRepository, signatureRepository signatures.SignatureRepository, gitlabOrgService gitlab_organizations.ServiceInterface) Service

type UserSigned

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

Jump to

Keyboard shortcuts

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