aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-18 22:12:54 +0200
committerTeddy Wing2018-04-18 22:12:54 +0200
commit7a26da37d273d7f25bbb06f86936dfd89adabcdc (patch)
tree342d36a4d075decb4473e0c2ff36ccb431807aa9
parenta7a6413b45b63fa70a2fa5a6866ae9b86b86e2de (diff)
downloadredprine-7a26da37d273d7f25bbb06f86936dfd89adabcdc.tar.bz2
Add Redmine token
Make authenticated requests to the Redmine API so that the requests actually go through successfully.
-rwxr-xr-xredprine2
1 files changed, 2 insertions, 0 deletions
diff --git a/redprine b/redprine
index 55b08cd..2b93085 100755
--- a/redprine
+++ b/redprine
@@ -9,6 +9,7 @@ GITHUB_TOKEN=''
GITHUB_USERNAME=''
REDMINE_BASE_URL=''
+REDMINE_TOKEN=''
CACHE_FILE="$HOME/redprine.json"
@@ -180,6 +181,7 @@ function update_redmine_status () {
curl \
--verbose \
--header 'Content-Type: application/json' \
+ --header "X-Redmine-API-Key: $REDMINE_TOKEN" \
--request PUT \
--data "$json" \
--location "${REDMINE_BASE_URL}/issues/${issue_id}.json"