git-branch-description
Advanced tools
+1
-1
| { | ||
| "name": "git-branch-description", | ||
| "version": "1.2.5", | ||
| "version": "1.2.6", | ||
| "description": "manage branch description via branch-description.properties", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+19
-4
@@ -10,3 +10,4 @@ var exec = require('child_process').execSync; | ||
| var branches = exec(`git for-each-ref --format='%(refname:short)' refs/heads/`, { | ||
| cwd: parser.getRootDir() | ||
| cwd: parser.getRootDir(), | ||
| stdio: 'pipe' | ||
| }).toString(); | ||
@@ -21,3 +22,3 @@ branches = trimSingleQuote(branches); | ||
| exports.remoteBranches = function(replaceRemoteName) { | ||
| var branches = exec(`git for-each-ref --format='%(refname:short)' refs/remotes/`).toString().trim(); | ||
| var branches = exec(`git fetch -q -n origin && git for-each-ref --format='%(refname:short)' refs/remotes/`).toString().trim(); | ||
| branches = trimSingleQuote(branches); | ||
@@ -55,3 +56,3 @@ | ||
| try { | ||
| const diff = exec(`git fetch -q origin ${name} && git diff origin/${name} -- branch-description.properties`, { | ||
| const diff = exec(`git diff ${name} -- branch-description.properties`, { | ||
| cwd: parser.getRootDir(), | ||
@@ -69,3 +70,3 @@ stdio: 'pipe' | ||
| try { | ||
| const diff = exec(`git diff ${name} -- branch-description.properties`, { | ||
| const diff = exec(`git diff origin/${name} -- branch-description.properties`, { | ||
| cwd: parser.getRootDir(), | ||
@@ -81,3 +82,17 @@ stdio: 'pipe' | ||
| } | ||
| if (!desc) { | ||
| try { | ||
| const diff = exec(`git fetch -q origin ${name} && git diff origin/${name} -- branch-description.properties`, { | ||
| cwd: parser.getRootDir(), | ||
| stdio: 'pipe' | ||
| }).toString(); | ||
| const matches = diff.match(new RegExp(`-${name}\\s*=\\s*(.+)`)); | ||
| if (matches) { | ||
| desc = matches[1].trim(); | ||
| } | ||
| } catch (e) { | ||
| } | ||
| } | ||
| return desc; | ||
| } |
Network access
Supply chain riskThis module accesses the network.
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
Network access
Supply chain riskThis module accesses the network.
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
14020
3.5%356
4.09%4
33.33%