DEV Community

Cover image for We just got NestJS latest patch merged automatically, and it's really cool
Geoffroy Empain
Geoffroy Empain

Posted on • Edited on

We just got NestJS latest patch merged automatically, and it's really cool

So I just got a Mattermost message from our bot:

Alt Text

NestJS has just published version 7.4.2 of all their packages, and we've already got all of them updated, thanks to pmbot.

Every day, when I get to work, I open our projects from our private Gitlab, and during the night, our Npm dependencies have gracefully been updated and a cheerful message awaits me in our Mattermost bot channel. Using Slack ? No problem, that'll work as well ! Using something else ? Write your own plugin to do something after an update:

module.exports = {
  version: '1.0.0',
  type: 'ACTION', // ACTION | PACKAGE_MANAGER_ADAPTER
  name: 'my-plugin',
  core: class {
    constructor(context) {
      // ...
    }
    execute(actionConfig, actionContext) {
      // plugin logic
    } 
  },
  parser: config => config,
  validator: config => Promise.resolve([]),
};
Enter fullscreen mode Exit fullscreen mode

Knowing that all your dependencies are always up to date when you get to work is somehow quite rewarding. And when something breaks, I just check our CI with the link provided in Pmbot's UI, fix the issue manually, and I'm good to go.

Are you using Go ? No problem !
Are you using Maven ? No problem !
Are you using another language ? Write your package manager adapter a simple plugin.

Thanks for reading !

Top comments (0)