server side now actually returning git tags shaped like git tags

Signed-off-by: mo <mcassidy@hchb.com>
This commit is contained in:
mo
2022-05-02 10:11:53 -05:00
parent 8dfbd66c4a
commit 0c16cef574
2 changed files with 13 additions and 20 deletions
@@ -145,6 +145,11 @@ export class AzureDevOpsApi {
gitRepository.id as string,
projectName,
'tags',
false,
false,
false,
false,
true,
);
this.logger?.warn(JSON.stringify(tagRefs));
@@ -394,18 +399,12 @@ export function mappedRepoBuild(build: Build): RepoBuild {
};
}
export function mappedGitTag(pullRequest: GitRef, linkBaseUrl: string): GitTag {
export function mappedGitTag(gitRef: GitRef, linkBaseUrl: string): GitTag {
return {
pullRequestId: 5,
repoName: 'sup',
title: 'hello title',
uniqueName: 'N/A',
createdBy: 'N/A',
creationDate: 'plop',
sourceRefName: 'sourceRefName',
targetRefName: 'targetRefName',
status: PullRequestStatus.NotSet,
isDraft: false,
objectId: gitRef.objectId,
peeledObjectId: gitRef.peeledObjectId,
name: gitRef.name,
createdBy: gitRef.creator?.displayName ?? 'N/A',
link: `${linkBaseUrl}/5`,
};
}