Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultChannel = "lintpal"
Variables ¶
View Source
var ErrGitHubAPI = errors.New("GitHub API request failed")
View Source
var ErrInvalidChannel = errors.New("invalid GitHub feedback channel")
View Source
var ErrInvalidContext = errors.New("invalid GitHub feedback context")
View Source
var ErrInvalidFinding = errors.New("invalid GitHub inline finding")
View Source
var ErrUnsafeFork = errors.New("GitHub publication disabled for fork pull request")
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Repo string
PRNumber int
BaseSHA string
HeadSHA string
BaseRepo string
HeadRepo string
UnsafeFork bool
}
func ResolveContext ¶
func ResolveContext(options ContextOptions) (Context, error)
type ContextOptions ¶
type Identity ¶
type Identity struct{ Channel string }
func NewIdentity ¶
func (Identity) FindingMarker ¶
func (Identity) ResultMarker ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func (*Publisher) ActiveFindings ¶
Click to show internal directories.
Click to hide internal directories.