diff options
author | Teddy Wing | 2018-04-18 21:41:13 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-18 21:41:13 +0200 |
commit | da8c9d4a17cb34953d1b65034f7f78e9f60f41f8 (patch) | |
tree | b5f97b1bf267a1e8a7bba189e535d6162dd4cad2 | |
parent | 2e320bcfb2c02f06cb3470cb8c19c37572cf6cdf (diff) | |
download | redprine-da8c9d4a17cb34953d1b65034f7f78e9f60f41f8.tar.bz2 |
Save pull request JSON to a cache file
Using `$HOME` as a temporary location for testing.
-rwxr-xr-x | redprine | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -10,6 +10,8 @@ GITHUB_USERNAME='' REDMINE_BASE_URL='' +CACHE_FILE="$HOME/redprine.json" + function github_owner_repo () { local git_remote=$(git remote get-url origin) local owner_repo=$(echo "$git_remote" | @@ -50,7 +52,7 @@ function cache_my_pull_requests () { )' ) - echo $my_pull_requests + echo $my_pull_requests > "$CACHE_FILE" } # branch_heads=$(printf "%s\n" "$pull_requests" | |