utils

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindBestCommit

func FindBestCommit(ctx context.Context, commits []*models.Commit) *models.Commit

FindBestCommit finds the best commit to redirect to based on configuration: * if commit's repository has a priority set, it's returned immedietely * if commit's repository has do not index, it won't be returned unless it's only available commit If config can't be retrieved, very first commit is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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