From 8acca63fa9cab7d67cd319cf5c0e99b36a82ba73 Mon Sep 17 00:00:00 2001 From: Dede Hamzah Date: Tue, 21 Sep 2021 14:01:53 +0700 Subject: [PATCH] Allow url with extension .yml in gitlab processor Signed-off-by: Dede Hamzah --- packages/integration/src/gitlab/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration/src/gitlab/core.ts b/packages/integration/src/gitlab/core.ts index 83ab29c62e..b30d44e2db 100644 --- a/packages/integration/src/gitlab/core.ts +++ b/packages/integration/src/gitlab/core.ts @@ -76,7 +76,7 @@ export function buildRawUrl(target: string): URL { userOrOrg === '' || repoName === '' || blobKeyword !== 'blob' || - !restOfPath.join('/').match(/\.yaml$/) + !restOfPath.join('/').match(/\.(yaml|yml)$/) ) { throw new Error('Wrong GitLab URL'); }