feedback-to-gitlab
Advanced tools
Comparing version 1.0.0 to 1.0.1
15
index.js
@@ -50,2 +50,3 @@ module.exports = feedback | ||
filepath += filename | ||
var content = req.body.img.replace(/^data:([A-Za-z-+\/]+);base64,/, '') | ||
@@ -55,2 +56,8 @@ var screenshotUrl = options.url + '/' + options.store.repository.slug + '/raw/' + options.store.branch + '/' + filepath | ||
res.json({ | ||
result: 'OK' | ||
}) | ||
next(null) | ||
gitlab.issues.create(options.repository.id, issue, function (data) { | ||
@@ -64,3 +71,3 @@ var issueId = data.iid | ||
encoding: 'base64', | ||
content: req.body.img.replace(/^data:([A-Za-z-+\/]+);base64,/, ''), | ||
content: content, | ||
commit_message: 'Screenshot for Issue #' + issueId | ||
@@ -71,8 +78,2 @@ }, function (data) { | ||
}) | ||
res.json({ | ||
result: 'OK' | ||
}) | ||
next(null) | ||
} | ||
@@ -79,0 +80,0 @@ |
{ | ||
"name": "feedback-to-gitlab", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Express middleware to generate Gitlab issues from visual user feedback", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
257529
139
0