Skip to content

Commit 1efc2e3

Browse files
committed
pr comments
1 parent d604ba9 commit 1efc2e3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/models/AuthenticationUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class AuthenticationUtils {
162162
}
163163
armTokenHeader() {
164164
return __awaiter(this, void 0, void 0, function* () {
165-
// right now only get calls from the ADO, so no need of content type for now for the get calls.
165+
// right now only get calls from the GH, so no need of content type for now for the get calls.
166166
var tokenRes = yield this.getTokenAPI(UtilModels_1.TokenScope.ControlPlane);
167167
this.controlPlaneToken = tokenRes;
168168
let headers = {

lib/models/FetchHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function httpClientRetries(urlSuffix_1, header_1, method_1) {
5454
return __awaiter(this, arguments, void 0, function* (urlSuffix, header, method, retries = 1, data, isUploadCall = true, log = true) {
5555
let httpResponse;
5656
try {
57-
let correlationId = `azdo-${(0, util_1.getUniqueId)()}`;
57+
let correlationId = `gh-actions-${(0, util_1.getUniqueId)()}`;
5858
header[UtilModels_1.correlationHeader] = correlationId; // even if we put console.debug its printing along with the logs, so lets just go ahead with the differentiation with azdo, so we can search the timeframe for azdo in correlationid and resource filter.
5959
if (method == 'get') {
6060
httpResponse = yield httpClient.get(urlSuffix, header);

src/models/AuthenticationUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class AuthenticationUtils {
123123
}
124124

125125
async armTokenHeader() {
126-
// right now only get calls from the ADO, so no need of content type for now for the get calls.
126+
// right now only get calls from the GH, so no need of content type for now for the get calls.
127127
var tokenRes:any = await this.getTokenAPI(TokenScope.ControlPlane);
128128
this.controlPlaneToken = tokenRes;
129129
let headers: IHeaders = {

src/models/FetchHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as core from '@actions/core'
1010
export async function httpClientRetries(urlSuffix : string, header : IHeaders, method : 'get' | 'del' | 'patch' | 'put', retries : number = 1,data : string, isUploadCall : boolean = true, log: boolean = true) : Promise<IHttpClientResponse>{
1111
let httpResponse : IHttpClientResponse;
1212
try {
13-
let correlationId = `azdo-${getUniqueId()}`;
13+
let correlationId = `gh-actions-${getUniqueId()}`;
1414
header[correlationHeader] = correlationId; // even if we put console.debug its printing along with the logs, so lets just go ahead with the differentiation with azdo, so we can search the timeframe for azdo in correlationid and resource filter.
1515
if(method == 'get'){
1616
httpResponse = await httpClient.get(urlSuffix, header);

0 commit comments

Comments
 (0)