@neoblog/plugin-gogs-webhook
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Gogs Webhook Plugin for Neoblog

Reload server when receive Gogs webhook.

What does this plugin actually do

  1. sync the repo and install dependencies
git fetch --all
git git reset --hard origin/master
npm ci
  1. reload the server
neoblog.reload();

Configuration

in NeoBlog config.js:

const GogsWebhookPlugin = require('@neoblog/plugin-gogs-webhook');

module.exports = {
    // ...
    plugins: [
        // ...
        new GogsWebhookPlugin({
            secret: 'a-very-long-secret-that-should-be-generated',
            path: '/path/to/webhook',
            localRef: 'origin/master'
        })
        // ...
    ]
    // ...
};

then setup webhook in Gogs porject settings.

Dependents (0)

Package Sidebar

Install

npm i @neoblog/plugin-gogs-webhook

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.9 kB

Total Files

4

Last publish

Collaborators

  • neoblog-the-owner
  • rocka