)]}'
{
  "commit": "43c4842f93a48519b111798c1edef3bc9c67eb7b",
  "tree": "65304facb2bdffda7d59b15c06b31cca3817a257",
  "parents": [
    "76bcd8daf5fb912262c327e6c512dc5f9cea3dae"
  ],
  "author": {
    "name": "Joey Armstrong",
    "email": "joey@opennetworking.org",
    "time": "Mon Apr 03 10:17:32 2023 -0400"
  },
  "committer": {
    "name": "Joey Armstrong",
    "email": "joey@opennetworking.org",
    "time": "Mon Apr 03 10:17:39 2023 -0400"
  },
  "message": "VOL-4905 - Deploy new voltctl version.\n\njjb/shell/github-release.sh\n---------------------------\n  o parseArgs() accept more command line args: --draft, --dryrun, --gen-version\n  o Added more debug statements so script is more verbose.\n  o Invoke gh using variable \"${gh_cmd}\" so downloaded binary always used.\n  o [LOCAL DEBUG]\n    - Wrapper global vars with access methods to facilitate debugging.\n    - Use getGitVersion() in place of literal $GIT_VERSION.\n    - Create a --draft release when VERSION string suffixed with -dev[n].\n  o Detect count(artifacts)\u003d\u003d0 to inhibit publishing a source-only release.\n  o pushd/popd -- detect and report cd errors\n\n EOH\n     return\n@@ -1000,38 +1030,54 @@ function parse_args()\n {\n     [[ -v DEBUG ]] \u0026\u0026 func_echo \"ENTER\"\n\n+    ## Defaults\n+    set -- \"$@\" \u0027--draft\u0027\n+\n     while [ $# -gt 0 ]; do\n-\tlocal arg\u003d\"$1\"; shift\n-\tcase \"$arg\" in\n-\t    -*gen-version)\n-\t\tget_version GIT_VERSION\n-\t\t;;\n-\n-\t    -*git-hostname)\n-\t\t__githost\u003d\"$1\"; shift\n-\t\t;;\n-\n-\t    -*repo-name)\n-\t\t__repo_name\u003d\"$1\"; shift\n-\t\t;;\n-\n-\t    -*repo-org)\n-\t\t__repo_org\u003d\"$1\"; shift\n-\t\t;;\n-\n-\t    -*pac)\n-\t\tdeclare -g pac\u003d\"$1\"; shift\n-\t\treadonly pac\n-\t\t[[ ! -f \"$pac\" ]] \u0026\u0026 error \"--token\u003d does not exist ($pac)\"\n-\t\t: # nop/true\n-\t\t;;\n-\n-\t    -*help)\n-\t\tusage\n-\t\texit 0\n-\t\t;;\n-\t    *) error \"Detected unknown argument $arg\" ;;\n-\tesac\n+        local arg\u003d\"$1\"; shift\n+        func_echo \"ARGV: $arg\"\n+        case \"$arg\" in\n+\n+            -*debug)   declare -i -g debug\u003d1         ;;\n+            --draft)   declare -i -g draft_release\u003d1 ;;\n+            --dry-run) declare -i -g dry_run\u003d1       ;;\n+\n+            --version-file)\n+                declare -i -g argv_version_file\u003d1\n+                ;;\n+\n+            -*gen-version)\n+                declare -g -i argv_gen_version\u003d1\n+                ;;\n+\n+            -*git-hostname)\n+                __githost\u003d\"$1\"; shift\n+                ;;\n+\n+            -*repo-name)\n+                __repo_name\u003d\"$1\"; shift\n+                ;;\n+\n+            -*repo-org)\n+                __repo_org\u003d\"$1\"; shift\n+                ;;\n+\n+            -*pac)\n+                declare -g pac\u003d\"$1\"; shift\n+                readonly pac\n+                [[ ! -f \"$pac\" ]] \u0026\u0026 error \"--token\u003d does not exist ($pac)\"\n+                : # nop/true\n+                ;;\n+\n+            -*todo) todo ;;\n+\n+            -*help)\n+                usage\n+                exit 0\n+                ;;\n+\n+            *) error \"Detected unknown argument $arg\" ;;\n+        esac\n     done\n\n     return\n@@ -1065,7 +1111,8 @@ pushd \"$release_path\" || error \"pushd failed: dir is [$release_path]\"\n **         GIT VERSION: $(declare -p GIT_VERSION)\n ** RELEASE_DESCRIPTION: $(declare -p RELEASE_DESCRIPTION)\n **     RELEASE_TARGETS: $(declare -p RELEASE_TARGETS)\n-** make release\n+** -----------------------------------------------------------------------\n+** Running: make ${RELEASE_TARGETS}\n ** -----------------------------------------------------------------------\n EOM\n     # build the release, can be multiple space separated targets\n@@ -1091,10 +1138,9 @@ EOM\n EOM\n\n   showReleases\n-  # releaseDelete \u0027v4.175.710\u0027\n   release_staging\n   popd  || error \"pushd failed: dir is [$release_path]\"\n-fi\n+# fi\n\n do_logout\n\nChange-Id: I7cab7ac177acf7bbb1247642a113f4b797dab5f3\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c6e7d6541c0e3d4c2910d8ac3ec951f345ee28c9",
      "old_mode": 33261,
      "old_path": "jjb/shell/github-release.sh",
      "new_id": "6612a8002f1b1d2698e2baa5f493e162efc30990",
      "new_mode": 33261,
      "new_path": "jjb/shell/github-release.sh"
    }
  ]
}
