From 7a26da37d273d7f25bbb06f86936dfd89adabcdc Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 18 Apr 2018 22:12:54 +0200 Subject: Add Redmine token Make authenticated requests to the Redmine API so that the requests actually go through successfully. --- redprine | 2 ++ 1 file changed, 2 insertions(+) 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" -- cgit v1.2.3