why add this file, just repeate changelog in patch container/mail-robot.rb and patch container/answerback-email.rb
Thanks, Yinsi
+# email monitor robot
+## purpose
+monitor received mails
- check if the mail is for applying uuid/account
+## steps overview
+1. monitor mailbox dir
- check for new email file
+2. check email
- check email subject
- return if unmatched subject
- call answerback-email
- check email available
- check base_url for the oss_url in upstream-repos list
if not, it will raise "url not in upstream-repos list" error
- check if the email has commit for the url
if not, it will raise "no commit found" error
- check pub_key
- check if there is a pub_key in the email
if not, it will raise 'no pub_key' error
- apply ssh account
- apply account uuid
- write account info to es
- send uuid to user
- mv mail file to drafts
+3. continue the monitor
- after 1 and 2, continue to monitor the mailbox
+4. see the log
- use the following command to get the logs
docker logs -f --tail=100 fluentd |grep mail-robot
-- 2.23.0