aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-19 20:47:56 +0200
committerTeddy Wing2018-04-19 20:47:56 +0200
commit04d5752774cc1ebb97b1df11acb5f9eaf2fd443e (patch)
treeb1b9f2b26b90b131093ddc7c756b64290fde9686
parent5d3e15ad6684a6c991be759407b0227bfaf337c3 (diff)
downloadredprine-04d5752774cc1ebb97b1df11acb5f9eaf2fd443e.tar.bz2
extract_data_from_pull_request_json(): Quote username
When I switched this over to use the variable, I forgot to retain the double quotes around the username string required by `jq`. Add these in so that the username can be parsed as a properly quoted string.
-rwxr-xr-xredprine2
1 files changed, 1 insertions, 1 deletions
diff --git a/redprine b/redprine
index 309d8ef..4425ed1 100755
--- a/redprine
+++ b/redprine
@@ -93,7 +93,7 @@ function extract_data_from_pull_request_json () {
created_at
}) |
map(
- select(.user == '"$GITHUB_USERNAME"')
+ select(.user == "'"$GITHUB_USERNAME"'")
)'
}