@aaronshaf/ger 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaronshaf/ger",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Gerrit CLI",
5
5
  "main": "src/ger.ts",
6
6
  "bin": {
package/src/ger.ts CHANGED
@@ -12,6 +12,7 @@ program
12
12
  .command("branch")
13
13
  .description("Get a list of local branches with Gerrit info")
14
14
  .option("-v", "Show extra information, i.e. approvals")
15
+ .option("-d", "Prompt to delete already-merged branches")
15
16
  .action((
16
17
  _program: any,
17
18
  ) => {
package/src/utils.ts CHANGED
@@ -63,7 +63,7 @@ export function getGerritData(changeIds: string[]) {
63
63
  }
64
64
 
65
65
  // Run the gerrit query command
66
- const gerrit_output = execSync(
66
+ const gerritData = execSync(
67
67
  `ssh gerrit "gerrit query --current-patch-set --format=JSON '${query}'"`
68
68
  )
69
69
  .toString()
@@ -71,7 +71,7 @@ export function getGerritData(changeIds: string[]) {
71
71
  .split("\n")
72
72
  .map((line) => JSON.parse(line) as GerritData);
73
73
 
74
- return gerrit_output.reduce<GerritDataMap>((acc, change) => {
74
+ return gerritData.reduce<GerritDataMap>((acc, change) => {
75
75
  return {
76
76
  ...acc,
77
77
  [change.id]: change,