node-red-contrib-gitlab2
Advanced tools
Comparing version 1.0.0-alpha-14 to 1.0.0-alpha-15
@@ -12,3 +12,9 @@ const gitlab = require('node-gitlab'); | ||
node.on('input', msg => { | ||
const { branch_name, encoding, content, commit_message, file_path } = msg.payload; | ||
const { | ||
branch_name, | ||
encoding, | ||
content, | ||
commit_message, | ||
file_path | ||
} = msg.payload; | ||
const { api, privateToken, id } = getNodeConfig(node, RED, msg); | ||
@@ -20,6 +26,6 @@ const client = gitlab.create({ api, privateToken }); | ||
file_path, | ||
branch_name: branch_name || node.branch_name, | ||
branch_name: branch_name ? branch_name : node.branch_name, | ||
content, | ||
commit_message, | ||
encoding: encoding || node.encoding | ||
encoding: encoding ? encoding : node.encoding | ||
}, | ||
@@ -26,0 +32,0 @@ (error, body) => { |
@@ -25,6 +25,6 @@ const gitlab = require('node-gitlab'); | ||
file_path, | ||
branch_name: branch_name || node.branch_name, | ||
branch_name: branch_name ? branch_name : node.branch_name, | ||
content, | ||
commit_message, | ||
encoding: encoding || node.encoding | ||
encoding: encoding ? encoding : node.encoding | ||
}, | ||
@@ -31,0 +31,0 @@ (error, body) => { |
{ | ||
"name": "node-red-contrib-gitlab2", | ||
"version": "1.0.0-alpha-14", | ||
"version": "1.0.0-alpha-15", | ||
"description": "Node-RED node using GitLab APIs", | ||
@@ -5,0 +5,0 @@ "repository": { |
22858
182