git-branch-description
Advanced tools
+1
-1
| { | ||
| "name": "git-branch-description", | ||
| "version": "1.2.0", | ||
| "version": "1.2.1", | ||
| "description": "manage branch description via branch-description.properties", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+13
-3
@@ -50,4 +50,14 @@ var exec = require('child_process').execSync; | ||
| } | ||
| try { | ||
| if (!desc) { | ||
| if (!desc) { | ||
| try { | ||
| const diff = exec(`git fetch --all && git diff origin/${name} branch-description.properties`).toString(); | ||
| const matches = diff.match(new RegExp(`-${name}\\s*=\\s*(.+)`)); | ||
| if (matches) { | ||
| desc = matches[1].trim(); | ||
| } | ||
| } catch (e) { | ||
| } | ||
| } | ||
| if (!desc) { | ||
| try { | ||
| const diff = exec(`git fetch --all && git diff ${name} branch-description.properties`).toString(); | ||
@@ -58,6 +68,6 @@ const matches = diff.match(new RegExp(`-${name}\\s*=\\s*(.+)`)); | ||
| } | ||
| } catch (e) { | ||
| } | ||
| } catch (e) { | ||
| } | ||
| return desc; | ||
| } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
13174
2.74%327
3.15%