aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"