Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideMigrator, )
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a utility used to migrate code comments after update of the pull request's source branch.
func ProvideMigrator ¶
func (*Migrator) MigrateNew ¶
func (migrator *Migrator) MigrateNew( ctx context.Context, repoGitUID string, newSHA string, comments []*types.CodeComment, )
MigrateNew updates the "+" (the added lines) part of code comments after a new commit on the pull request's source branch. The parameter newSHA should contain the latest commit SHA of the pull request's source branch.
func (*Migrator) MigrateOld ¶
func (migrator *Migrator) MigrateOld( ctx context.Context, repoGitUID string, newSHA string, comments []*types.CodeComment, )
MigrateOld updates the "-" (the removes lines) part of code comments after the pull request's change of the merge base commit.
Click to show internal directories.
Click to hide internal directories.