changelogutil

package
v0.0.0-...-ff9afc2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package changelogutil contains utility functions for changelogs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeLogsToBlamelist

func ChangeLogsToBlamelist(ctx context.Context, changeLogs []*model.ChangeLog) *pb.BlameList

func FindCommitIndexInBlameList

func FindCommitIndexInBlameList(gitilesCommit *bbpb.GitilesCommit, blamelist *pb.BlameList) int

FindCommitIndexInBlameList find the index of the gitiles commit in blamelist. It returns -1 if it couldn't find.

func GetChangeLogs

func GetChangeLogs(c context.Context, rr *pb.RegressionRange, shouldIncludeLastPass bool) ([]*model.ChangeLog, error)

GetChangeLogs queries Gitiles for changelogs in the regression range. If shouldIncludeLastPass is true, the result should also include the last pass revision. The result will be in descending order of recency (i.e. first failed revision at index 0).

func SetCommitPositionInBlamelist

func SetCommitPositionInBlamelist(blamelist *pb.BlameList, regressionStartPosition, regressionEndPosition int64) error

SetCommitPositionInBlamelist sets the position field in BlameListSingleCommits of this blamelist. Commits in the blamelist are ordered by commit position in descending order. Index 0 refers to the highest-position commit in the regression range, with has the commit position same as regression end position. Index n-1 refers to the lowest-position commit in the regression range. We can find the commit position of all commits in between.

Types

This section is empty.

Jump to

Keyboard shortcuts

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