Changes for project owners to receive email notifications
What does this MR do and why?
Solves #460818 (closed)
In continuation for community MR - !153000 (closed)
Changes for project owners to receive email notifications
Currently on token expiration mails are sent to only project maintainers. With this change even project owners will receive notification for upcoming token expiration
Changelog: changed
How to set up and validate locally
- Create a project on your local setup and assign two members one with
owner
and another withmaintainer
role. - Create a personal access token for project and set expiry date within next 7 days
- Execute ExpiringWorker from console
PersonalAccessTokens::ExpiringWorker.new.perform
and checklog/application_json.log
- You should be able to observe two
Email notification entries
one forowner user
and another formaintainer user