Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Added types for importers/gitlab

dominicbachmannbcacefb8419a
diff --git a/src/lib/importers/gitlab.ts b/src/lib/importers/gitlab.ts
index 81ef54c107..b7eb6d47bc 100644
--- a/src/lib/importers/gitlab.ts
+++ b/src/lib/importers/gitlab.ts
@@ -9,7 +9,16 @@ export default async function ({
branch,
buildId,
privateSshKey
-}): Promise<any> {
+}: {
+ applicationId: string;
+ workdir: string;
+ repository: string;
+ htmlUrl: string;
+ branch: string;
+ buildId: string;
+ repodir: string;
+ privateSshKey: string;
+}): Promise<string> {
const url = htmlUrl.replace('https://', '').replace('http://', '');
await saveBuildLog({ line: 'GitLab importer started.', buildId, applicationId });
await asyncExecShell(`echo '${privateSshKey}' > ${repodir}/id.rsa`);