mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-06 04:08:45 +00:00
24 lines
515 B
Go
24 lines
515 B
Go
package events
|
|
|
|
import "github.com/runatlantis/atlantis/server/events/vcs"
|
|
|
|
// ProjectResult is the result of executing a plan/apply for a project.
|
|
type ProjectResult struct {
|
|
Path string
|
|
Error error
|
|
Failure string
|
|
PlanSuccess *PlanSuccess
|
|
ApplySuccess string
|
|
}
|
|
|
|
// Status returns the vcs commit status of this project result.
|
|
func (p ProjectResult) Status() vcs.CommitStatus {
|
|
if p.Error != nil {
|
|
return vcs.Failed
|
|
}
|
|
if p.Failure != "" {
|
|
return vcs.Failed
|
|
}
|
|
return vcs.Success
|
|
}
|