@neoblog/plugin-gogs-webhook
v1.0.0
Published
NeoBlog plugin to reload server when receive Gogs webhook.
Downloads
5
Readme
Gogs Webhook Plugin for Neoblog
Reload server when receive Gogs webhook.
What does this plugin actually do
- sync the repo and install dependencies
git fetch --all
git git reset --hard origin/master
npm ci
- 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.