This Google App Scripts create digest mail of npm's "Successfully published" notification from your Gmail read mails.
npm's Successfully published notification mail is noisy. Specially, on monorepo like HonKit.
Successfully published honkit@3.4.0
Hi azu!
A new version of the package honkit (3.4.0) was published at 2020-06-27T08:30:56.245Z from
xxx.xxx.xx.xxx. The shasum of this package was XXXXXXXXXX.
If you have questions or security concerns, you can reply to this message or
email support@npmjs.com.
npm loves you.
This Google Apps Script create summary mail every X hours.
Use clasp.
npm install --global clasp
clasp login
Create own Google App Script
git clone https://github.com/azu/gmail-npm-publish-digest
cd gmail-npm-publish-digest
# create .clasp.json
clasp create --type standalone --title "gmail-npm-publish-digest"
# Install Dependencies
yarn install
# Update script
clasp push
# Open script editor
clasp open
- open script editor:
clasp open
- Run
main
function on script editor
- open script editor:
clasp open
- Run
createTimeTrigger
function on script editor
It will set cron job for the script
FETCH_INTERVAL_HOURS
: Runmain
function every X hours- Default:
6
- Default:
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT