Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const MultiBranchBranchType + const SingleBranchBranchType + type CreateFlowRequest struct + AppID uint64 + Data *pb.FlowEventData + OrgID uint64 + ProjectID uint64 + type IssueMock struct + func (i IssueMock) AfterIssueAppRelationCreate(issueIDs []int64) error + func (i IssueMock) AfterIssueInclusionRelationChange(id uint64) error + func (i IssueMock) AfterIssueUpdate(u *query.IssueUpdated) error + func (i IssueMock) BatchGetIssue(id []int64, identityInfo *commonpb.IdentityInfo) ([]*issuepb.Issue, error) + func (i IssueMock) BatchGetIssuePropertyInstances(orgID int64, projectID uint64, issueType string, issueIDs []uint64) (map[uint64]*issuepb.IssueAndPropertyAndValue, error) + func (i IssueMock) BatchGetProperties(orgID int64, issuesType []string) ([]*issuepb.IssuePropertyIndex, error) + func (i IssueMock) BatchUpdateIssue(req *issuepb.BatchUpdateIssueRequest) error + func (i IssueMock) CreatePropertyRelation(req *issuepb.CreateIssuePropertyInstanceRequest) error + func (i IssueMock) GetAllIssuesByProject(req issuepb.IssueListRequest) ([]dao.IssueItem, error) + func (i IssueMock) GetBatchProperties(orgID int64, issuesType []string) ([]*issuepb.IssuePropertyIndex, error) + func (i IssueMock) GetIssue(id int64, identityInfo *commonpb.IdentityInfo) (*issuepb.Issue, error) + func (i IssueMock) GetIssueChildren(id uint64, req issuepb.PagingIssueRequest) ([]dao.IssueItem, uint64, error) + func (i IssueMock) GetIssueItem(id uint64) (*dao.IssueItem, error) + func (i IssueMock) GetIssueLabelsByProjectID(projectID uint64) ([]dao.IssueLabel, error) + func (i IssueMock) GetIssueParents(issueID uint64, relationType []string) ([]dao.IssueItem, error) + func (i IssueMock) GetIssuePropertyInstance(req *issuepb.GetIssuePropertyInstanceRequest) (*issuepb.IssueAndPropertyAndValue, error) + func (i IssueMock) GetIssueRelationsByIssueIDs(issueID uint64, relationType []string) ([]uint64, []uint64, error) + func (i IssueMock) GetIssueStage(req *issuepb.IssueStageRequest) ([]*issuepb.IssueStage, error) + func (i IssueMock) GetIssueStateIDs(req *issuepb.GetIssueStatesRequest) ([]int64, error) + func (i IssueMock) GetIssueStateIDsByTypes(req *apistructs.IssueStatesRequest) ([]int64, error) + func (i IssueMock) GetIssueStatesBelong(req *issuepb.GetIssueStateRelationRequest) ([]apistructs.IssueStateState, error) + func (i IssueMock) GetIssueStatesMap(req *issuepb.GetIssueStatesRequest) (map[string][]issuepb.IssueStatus, error) + func (i IssueMock) GetIssuesByIssueIDs(issueIDs []uint64) ([]*issuepb.Issue, error) + func (i IssueMock) GetIssuesStatesByProjectID(projectID uint64, issueType string) ([]dao.IssueState, error) + func (i IssueMock) GetProperties(req *issuepb.GetIssuePropertyRequest) ([]*issuepb.IssuePropertyIndex, error) + func (i IssueMock) ListStatesTransByProjectID(projectID uint64) ([]dao.IssueStateTransition, error) + func (i IssueMock) Paging(req issuepb.PagingIssueRequest) ([]*issuepb.Issue, uint64, error) + func (i IssueMock) SyncIssueChildrenIteration(issue *issuepb.Issue, iterationID int64) error + func (i IssueMock) SyncLabels(value *syncpb.Value, issueIDs []uint64) error + func (i IssueMock) UpdateIssue(req *issuepb.UpdateIssueRequest) error + func (i IssueMock) UpdateLabels(id, projectID uint64, labelNames []string) (err error) + type Service struct + func (p *Service) WithBranchRule(branchRuleSvc *branchrule.BranchRule) + func (p *Service) WithGittarFileTree(fileTree *filetree.GittarFileTree) + func (p *Service) WithPermission(permission *permission.Permission) + func (s *Service) CreateFlowEvent(req *CreateFlowRequest) error + func (s *Service) CreateFlowNode(ctx context.Context, req *pb.CreateFlowNodeRequest) (*pb.CreateFlowNodeResponse, error) + func (s *Service) DeleteFlowNode(ctx context.Context, req *pb.DeleteFlowNodeRequest) (*pb.DeleteFlowNodeResponse, error) + func (s *Service) FlowCallBack(ctx context.Context, req *pb.FlowCallbackRequest) (*pb.FlowCallbackResponse, error) + func (s *Service) GetDevFlowInfo(ctx context.Context, req *pb.GetDevFlowInfoRequest) (*pb.GetDevFlowInfoResponse, error) + func (s *Service) IdempotentCreateBranch(ctx context.Context, repoPath, sourceBranch, newBranch string) error + func (s *Service) IdempotentDeleteBranch(ctx context.Context, repoPath, branch string) error + func (s *Service) IsMROpenedOrNotCreated(ctx context.Context, currentBranch, targetBranch string, appID uint64) (bool, error) + func (s *Service) JoinTempBranch(ctx context.Context, tempBranch, sourceBranch string, ...) error + func (s *Service) JudgeBranchIsExists(ctx context.Context, repoPath, branch string) (has bool, err error) + func (s *Service) MergeToTempBranch(ctx context.Context, tempBranch string, appID uint64, devFlow *db.DevFlow) error + func (s *Service) OperationMerge(ctx context.Context, req *pb.OperationMergeRequest) (*pb.OperationMergeResponse, error) + func (s *Service) Reconstruction(ctx context.Context, req *pb.ReconstructionRequest) (*pb.ReconstructionResponse, error) + func (s *Service) RejoinTempBranch(ctx context.Context, tempBranch, sourceBranch, targetBranch string, ...) error + func (s *Service) UpdateDevFlowAndDoRejoin(ctx context.Context, devFlow *db.DevFlow, app *apistructs.ApplicationDTO) error