woodpecker/server/datastore/database
Michael Nutt e8b993e7da Add support for after_success and after_failure to email notifications
This allows you to restrict email notifications to only be sent after the build changes from success to failure or failure to success.  It errs on the side of sending the notification; if the build is in another state (hung, for instance) or there was no previous build on the branch the email will also be sent.

Since the notify plugin shouldn't really have any responsibility for querying the database to find the previous commit's status, we store it on the commit when we save it.
2014-12-30 11:37:57 -05:00
..
blob.go moved sql-based Blobstore to the database package 2014-09-27 13:32:54 -07:00
blob_test.go moved sql-based Blobstore to the database package 2014-09-27 13:32:54 -07:00
commit.go Add support for after_success and after_failure to email notifications 2014-12-30 11:37:57 -05:00
commit_test.go Add support for after_success and after_failure to email notifications 2014-12-30 11:37:57 -05:00
database.go Add support for after_success and after_failure to email notifications 2014-12-30 11:37:57 -05:00
helper.go added tests for repositories 2014-09-26 00:39:07 -07:00
perm.go fixed permission insert to use upsert for improved sync 2014-10-05 19:57:33 -07:00
perm_test.go fixed permission insert to use upsert for improved sync 2014-10-05 19:57:33 -07:00
repo.go Use join instead of subquery 2014-11-15 16:10:44 +01:00
repo_test.go ability to drive database test connections from env variables 2014-09-27 12:00:58 -07:00
user.go set created & updated dates in database 2014-10-14 01:49:10 -07:00
user_test.go ability to drive database test connections from env variables 2014-09-27 12:00:58 -07:00