package
0.0.0-20240731062821-dc9c76cc409b
Repository: https://github.com/daedaleanai/git-ticket.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
No description provided by the author
Convenience function to apply the operation.
No description provided by the author
No description provided by the author
ChangeLabels is a convenience function to apply the operation.
Clears all CCB approvals, keeping the users that need to approve the ticket statuses, but removing their approval.
Clear CCB approvals of the given user and status.
Convenience function to apply the operation.
Convenience function to apply the operation.
No description provided by the author
Convenience function to apply the operation.
No description provided by the author
Convenience function to edit the body of a bug (the first comment).
Convenience function to edit the body of a bug (the first comment).
FetchReviewInfo exports review comments and status info from Phabricator or Gitea for the given differential ID and returns in a PullRequest struct.
FindLocalBug find an existing Bug matching a prefix.
FindWorkflow searches a list of labels and attempts to match them to a workflow, returning the first found.
ForceChangeLabels is a convenience function to apply the operation The difference with ChangeLabels is that no checks of deduplications are done.
GetWorkflowLabels returns a slice of all the available workflow labels.
ListLocalIds list all the available local bug ids.
MergeAll will merge all the available remote bug:
- If the remote has new commit, the local bug is updated to match the same history (fast-forward update) - if the local bug has new commits but the remote don't, nothing is changed - if both local and remote bug have new commits (that is, we have a concurrent edition), new local commits are rewritten at the head of the remote history (that is, a rebase).
No description provided by the author
NewBug create a new Bug.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Convenience function to apply the operation.
Convenience function to apply the operation.
PeekLocalBugEditTime will read the latest edit time of a bug without loading it.
ReadAllLocalBugs read and parse all local bugs.
ReadAllRemoteBugs read and parse all remote bugs for a given remote.
ReadLocalBug will read a local bug from its hash.
ReadRemoteBug will read a remote bug from its hash.
RemoveBug will remove a local bug from its entity.Id.
ResetBug will reset a local bug from its entity.Id.
Convenience function to apply the operation.
Convenience function to apply the operation.
Convenience function to apply the operation.
Convenience function to apply the operation.
Convenience function to apply the operation.
Convenience function to apply the operation.
Convenience function to apply the operation.
No description provided by the author
No description provided by the author
ValidateAllCcb returns an error if the snapshot does not have CCB set and approved for all CCB status (Except rejected).
ValidateAssigneeSet returns an error if the snapshot assignee is not set.
ValidateCcb returns an error if the snapshot does not have CCB set and approved for the next status.
ValidateChecklistsCompleted returns an error if at least one of the checklists attached to the snapshot has not been completed.
# Constants
No description provided by the author
No description provided by the author
added to the ticket, but not set a state.
approved the ticket.
blocked the ticket.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
removed from the ticket.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ClockLoader is the repository.ClockLoader for the Bug entity.
No description provided by the author
# Structs
AddCommentOperation will add a new comment in the bug.
CreateTimelineItem replace a AddComment operation in the Timeline and hold its edition history.
Bug hold the data of a bug thread, organized in a way close to how it will be persisted inside Git.
CcbInfo is stored in a ticket history every time an approver is added or removed, or has approved or blocked the ticket.
No description provided by the author
Comment represent a comment in a Bug.
CommentTimelineItem is a TimelineItem that holds a Comment and its edition history.
CreateOperation define the initial creation of a bug.
CreateTimelineItem replace a Create operation in the Timeline and hold its edition history.
EditCommentOperation will change a comment in the bug.
CreateTimelineItem replace a AddComment operation in the Timeline and hold its edition history.
LabelChangeOperation define a Bug operation to add or remove labels.
No description provided by the author
No description provided by the author
NoOpOperation is an operation that does not change the bug state.
OpBase implement the common code for all operations.
No description provided by the author
OperationPack represent an ordered set of operation to apply to a Bug.
SetAssigneeOperation will change the Assignee of a bug.
No description provided by the author
SetCcbOperation will change the CCB status of a bug.
No description provided by the author
SetChecklistOperation will update the checklist associated with a ticket.
No description provided by the author
No description provided by the author
SetReviewOperation will update the review associated with a ticket.
No description provided by the author
SetStatusOperation will change the status of a bug.
No description provided by the author
SetTitleOperation will change the title of a bug.
No description provided by the author
Snapshot is a compiled form of the Bug data structure used for storage and merge.
No description provided by the author
No description provided by the author
WithSnapshot encapsulate a Bug and maintain the corresponding Snapshot efficiently.
No description provided by the author
# Interfaces
No description provided by the author
Operation define the interface to fulfill for an edit operation of a Bug.
No description provided by the author
# Type aliases
Invoked to update a ticket as a consequence of a workflow status transition.
No description provided by the author
No description provided by the author
CcbInfoByStatus provides functions to fulfill the sort interface.
CcbState represents the state of an approver with respect to a ticket status.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OperationType is an operation type identifier.
No description provided by the author
No description provided by the author
Invoked to validate if a workflow transition can be taken.