-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #23725: Actions - send Email on Success/Failure #33601
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Mayank Mohapatra <125661248+Mayank77maruti@users.noreply.github.com>
Signed-off-by: Mayank Mohapatra <125661248+Mayank77maruti@users.noreply.github.com>
Signed-off-by: Mayank Mohapatra <125661248+Mayank77maruti@users.noreply.github.com>
Signed-off-by: Mayank Mohapatra <125661248+Mayank77maruti@users.noreply.github.com>
Maybe we should use #30278 |
@lunny can you please take a look. |
i think we should go the event route 🤔 under https://gitea/user/settings/hooks/gitea/new u can specify a list of events for which a webhook is triggered - i think including it there would be the right step - maybe extend the event system with "should send email by default" or something like it, which should then be sub/unsubscibable in user settings |
I want to clarify #33694 is workflow_job tied to starting / finishing of jobs not workflows. You cannot implement this by listening for independent job completion. The email should afaik depend on workflow_run (completed) webhook / notifier, which I initially planned to do as well. |
i think it would be a good idea to implement this email listening as centrally as possible - i.e. listen to all events and (maybe hardcoded for now) only send email on that one example , then its easier to make it user customizable in the future, no ? |
Yes adding a webhook category for Email, then allow a text fields to provide golang templates to generate the subject, body + a custom filter expression (based on webhook json fields) would technically be a really powerfull and customizable feature for keep up to date. (Bad User Experience, good Developer Experience) Then provide a preconfigured list for each webhook to choose the Email style for the event. (Better User Experience) Would then depend on a webhook for workflow completion to be added. I'm only active in this PR thread, because my PR has been referenced here. I don't even have EMail set up in my instance so I will be silent here |
i was more thinking a central event pipeline that then feeds into webhook and email seperately 🤔 it would allow to configure email obver webhook tho ^^ (which might also be a neat first workaround so the current issue doenst blow the scope up too much ) |
Fixes #23725
/claim #23725