mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-18 08:26:45 +02: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_test.go | ||
blob.go | ||
commit_test.go | ||
commit.go | ||
database.go | ||
helper.go | ||
perm_test.go | ||
perm.go | ||
repo_test.go | ||
repo.go | ||
user_test.go | ||
user.go |