# Functions
DeleteScheduledAutoMerge delete a scheduled pull request.
GetNewestReviewState gets the newest review of the current user in the current PR.
GetReviewState returns the ReviewState with all given values prefilled, whether or not it exists in the database.
GetScheduledMergeByPullID gets a scheduled pull request merge by pull request id.
IsErrAlreadyScheduledToAutoMerge checks if an error is a ErrAlreadyScheduledToAutoMerge.
ScheduleAutoMerge schedules a pull request to be merged when all checks succeed.
UpdateReviewState updates the given review inside the database, regardless of whether it existed before or not The given map of files with their viewed state will be merged with the previous review, if present.
# Structs
AutoMerge represents a pull request scheduled for merging when checks succeed.
ErrAlreadyScheduledToAutoMerge represents a "PullRequestHasMerged"-error.
ReviewState stores for a user-PR-commit combination which files the user has already viewed.
# Type aliases
ViewedState stores for a file in which state it is currently viewed.