Skip to content

Commit

Permalink
chore: adds CI name as header to API (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnolet authored Aug 31, 2023
1 parent 7dba16a commit 18ac2b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/rest/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import axios, { AxiosInstance, InternalAxiosRequestConfig } from 'axios'
import { name as CIname } from 'ci-info'
import config from '../services/config'
import { assignProxy } from '../services/util'
import Accounts from './accounts'
Expand Down Expand Up @@ -56,6 +57,8 @@ export function requestInterceptor (config: InternalAxiosRequestConfig) {
config.headers['x-checkly-account'] = accountId
}

config.headers['x-checkly-ci-name'] = CIname

return config
}

Expand Down

0 comments on commit 18ac2b0

Please sign in to comment.