mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +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. |
||
---|---|---|
.. | ||
app | ||
blobstore | ||
capability | ||
datastore | ||
handler | ||
middleware | ||
pubsub | ||
router | ||
session | ||
sync | ||
worker | ||
main.go |