node-red-contrib-gitlab2
Advanced tools
Comparing version 1.0.0-alpha-07 to 1.0.0-alpha-08
@@ -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.gitlabConfig); | ||
const { api, privateToken, id } = getNodeConfig(node); | ||
const client = gitlab.create({ api, privateToken }); | ||
@@ -17,0 +17,0 @@ client.repositoryFiles.create( |
@@ -12,3 +12,3 @@ const gitlab = require('node-gitlab'); | ||
const { file_path, ref } = msg.payload; | ||
const { api, privateToken, id } = getNodeConfig(node.gitlabConfig); | ||
const { api, privateToken, id } = getNodeConfig(node); | ||
const target = ref || node.ref; | ||
@@ -15,0 +15,0 @@ const client = gitlab.create({ api, privateToken }); |
@@ -13,3 +13,3 @@ const gitlab = require('node-gitlab'); | ||
const { branch_name, encoding, content, commit_message } = msg.payload; | ||
const { api, privateToken, id } = getNodeConfig(node.gitlabConfig); | ||
const { api, privateToken, id } = getNodeConfig(node); | ||
const client = gitlab.create({ api, privateToken }); | ||
@@ -16,0 +16,0 @@ client.repositoryFiles.update( |
{ | ||
"name": "node-red-contrib-gitlab2", | ||
"version": "1.0.0-alpha-07", | ||
"version": "1.0.0-alpha-08", | ||
"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
22611