internal

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommits added in v2.3.0

func GetCommits(context context.Context, client *pending_review.Client, file string, count int) ([]*github.RepositoryCommit, error)

GetCommits returns a list of of number from the raw-data branch

func GetCommitsSince deprecated added in v2.3.0

func GetCommitsSince(context context.Context, client *pending_review.Client, file string, since time.Time) ([]*github.RepositoryCommit, error)

Deprecated: GetCommitsSince returns a list of commits made to a certain file after a point in time from the raw-data branch

func GetDataFile added in v2.1.0

func GetDataFile(context context.Context, client *pending_review.Client, file string) (*github.RepositoryContent, error)

GetDataFile returns the content of file from the root directory of the raw-data branch

func GetDataFileAtRef deprecated added in v2.3.0

func GetDataFileAtRef(context context.Context, client *pending_review.Client, file string, sha string) (*github.RepositoryContent, error)

Deprecated: GetDataFileAtRef use GetFileAtRef

func GetFileAtRef added in v2.5.0

func GetFileAtRef(context context.Context, client *pending_review.Client, file string, sha string) (*github.RepositoryContent, error)

GetFileAtRef returns the content of file from the root directory from a commit sha

func GetJSONFile added in v2.1.1

func GetJSONFile(context context.Context, client *pending_review.Client, file string, content interface{}) error

GetJSONFile returns the JSON structure of file from the root directory of the raw-data branch

func MakeClient added in v2.4.0

func MakeClient(context context.Context, token string) (*pending_review.Client, error)

func UpdateDataFile added in v2.1.0

func UpdateDataFile(context context.Context, client *pending_review.Client, file string, content []byte) (bool, error)

UpdateDataFile commits the new content to `raw-data` if it's different. It returns if the modification took place and any error encountered.

func UpdateFileAtRef added in v2.5.0

func UpdateFileAtRef(context context.Context, client *pending_review.Client, file string, branch string, content []byte) (bool, error)

UpdateDataFileAtRef commits the new content if it's different. It returns if the modification took place and any error encountered.

func UpdateJSONFile added in v2.1.0

func UpdateJSONFile(context context.Context, client *pending_review.Client, file string, content interface{}) (bool, error)

UpdateJSONFile commits the new content if it's different. It returns if the modification took place and any error encountered.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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