diff options
author | Teddy Wing | 2018-04-18 22:12:54 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-18 22:12:54 +0200 |
commit | 7a26da37d273d7f25bbb06f86936dfd89adabcdc (patch) | |
tree | 342d36a4d075decb4473e0c2ff36ccb431807aa9 | |
parent | a7a6413b45b63fa70a2fa5a6866ae9b86b86e2de (diff) | |
download | redprine-7a26da37d273d7f25bbb06f86936dfd89adabcdc.tar.bz2 |
Add Redmine token
Make authenticated requests to the Redmine API so that the requests
actually go through successfully.
-rwxr-xr-x | redprine | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" |