mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-04 07:36:29 +00:00
e8b993e7da
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. |
||
---|---|---|
.. | ||
blob.go | ||
blob_test.go | ||
commit.go | ||
commit_test.go | ||
database.go | ||
helper.go | ||
perm.go | ||
perm_test.go | ||
repo.go | ||
repo_test.go | ||
user.go | ||
user_test.go |