Skip to content

Commit

Permalink
fix: (gitlab api) get file contents and commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Aymard committed Jan 8, 2025
1 parent d915405 commit ad61541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ export class AwsAppsPlatformApi {

if (this.gitProvider===GitProviders.GITLAB)
{
resultBody = await result.value.json();
resultBody = result.value;
}
else if (this.gitProvider===GitProviders.GITHUB)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class GitLabAPI implements ISCMBackendAPI {
}
else
{
groupName=""
groupName=gitProjectGroup
repoName = gitRepoName;
}
const url = `https://${gitHost}/api/v4/projects?search=${repoName}`;
Expand Down Expand Up @@ -156,7 +156,7 @@ export class GitLabAPI implements ISCMBackendAPI {
isSuccuess: true,
message: `Retrieved file content successfully`,
httpResponse : result.status,
value:resultBody.content
value: Buffer.from(resultBody.content, 'base64').toString()
};
}
}
Expand Down

0 comments on commit ad61541

Please sign in to comment.