mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-04 04:58:28 +00:00
This will enable us to use the CreateComment function without having the full pull request model.
16 lines
615 B
Go
16 lines
615 B
Go
package vcs
|
|
|
|
import (
|
|
"github.com/runatlantis/atlantis/server/events/models"
|
|
)
|
|
|
|
//go:generate pegomock generate -m --use-experimental-model-gen --package mocks -o mocks/mock_client.go Client
|
|
|
|
// Client is used to make API calls to a VCS host like GitHub or GitLab.
|
|
type Client interface {
|
|
GetModifiedFiles(repo models.Repo, pull models.PullRequest) ([]string, error)
|
|
CreateComment(repo models.Repo, pullNum int, comment string) error
|
|
PullIsApproved(repo models.Repo, pull models.PullRequest) (bool, error)
|
|
UpdateStatus(repo models.Repo, pull models.PullRequest, state CommitStatus, description string) error
|
|
}
|