Change from notification after_success and after_failure to change

Also removes the extra db field; instead, just send Prior as part of the Request.

This reverts commit e8b993e7da.
This commit is contained in:
Michael Nutt
2014-12-30 13:25:14 -05:00
parent e8b993e7da
commit b94280c15c
9 changed files with 43 additions and 130 deletions

View File

@@ -8,7 +8,6 @@ type Commit struct {
ID int64 `meddler:"commit_id,pk" json:"id"`
RepoID int64 `meddler:"repo_id" json:"-"`
Status string `meddler:"commit_status" json:"status"`
PriorStatus string `meddler:"commit_prior_status" json:"prior_status"`
Started int64 `meddler:"commit_started" json:"started_at"`
Finished int64 `meddler:"commit_finished" json:"finished_at"`
Duration int64 `meddler:"commit_duration" json:"duration"`

View File

@@ -5,4 +5,5 @@ type Request struct {
User *User `json:"-"`
Repo *Repo `json:"repo"`
Commit *Commit `json:"commit"`
Prior *Commit `json:"prior_commit"`
}