node-red-contrib-gitlab2
Advanced tools
Comparing version 1.0.0-alpha-09 to 1.0.0-alpha-10
@@ -13,3 +13,3 @@ const gitlab = require('node-gitlab'); | ||
const { branch_name, encoding, content, commit_message } = msg.payload; | ||
const { api, privateToken, id } = getNodeConfig(node); | ||
const { api, privateToken, id } = getNodeConfig(node, RED, msg); | ||
const client = gitlab.create({ api, privateToken }); | ||
@@ -16,0 +16,0 @@ client.repositoryFiles.create( |
@@ -8,7 +8,7 @@ const gitlab = require('node-gitlab'); | ||
RED.nodes.createNode(node, n); | ||
node.gitlabConfig = RED.nodes.getNode(n.gitlabconfig); | ||
node.config = RED.nodes.getNode(n.gitlabconfig); | ||
node.ref = n.ref; | ||
node.on('input', msg => { | ||
const { file_path, ref } = msg.payload; | ||
const { api, privateToken, id } = getNodeConfig(node); | ||
const { api, privateToken, id } = getNodeConfig(node, RED, msg); | ||
const target = ref || node.ref; | ||
@@ -15,0 +15,0 @@ const client = gitlab.create({ api, privateToken }); |
@@ -8,3 +8,3 @@ const gitlab = require('node-gitlab'); | ||
RED.nodes.createNode(node, n); | ||
node.gitlabConfig = RED.nodes.getNode(n.gitlabconfig); | ||
node.config = RED.nodes.getNode(n.gitlabconfig); | ||
node.branch_name = n.branch_name; | ||
@@ -14,3 +14,3 @@ node.encoding = n.encoding; | ||
const { branch_name, encoding, content, commit_message } = msg.payload; | ||
const { api, privateToken, id } = getNodeConfig(node); | ||
const { api, privateToken, id } = getNodeConfig(node, RED, msg); | ||
const client = gitlab.create({ api, privateToken }); | ||
@@ -17,0 +17,0 @@ client.repositoryFiles.update( |
{ | ||
"name": "node-red-contrib-gitlab2", | ||
"version": "1.0.0-alpha-09", | ||
"version": "1.0.0-alpha-10", | ||
"description": "Node-RED node using GitLab APIs", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22629