chore: fixing old bug of filter not found for parseRepoUrl in fetch:template
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -28,6 +28,7 @@ import {
|
||||
SecureTemplater,
|
||||
TemplateGlobal,
|
||||
} from '../../../../lib/templating/SecureTemplater';
|
||||
import { createDefaultFilters } from '../../../../lib/templating/filters';
|
||||
|
||||
/**
|
||||
* Downloads a skeleton, templates variables into file and directory names and content.
|
||||
@@ -49,6 +50,11 @@ export function createFetchTemplateAction(options: {
|
||||
additionalTemplateGlobals,
|
||||
} = options;
|
||||
|
||||
const templateFilters = {
|
||||
...createDefaultFilters({ integrations }),
|
||||
...additionalTemplateFilters,
|
||||
};
|
||||
|
||||
return createTemplateAction<{
|
||||
url: string;
|
||||
targetPath?: string;
|
||||
@@ -231,8 +237,8 @@ export function createFetchTemplateAction(options: {
|
||||
|
||||
const renderTemplate = await SecureTemplater.loadRenderer({
|
||||
cookiecutterCompat: ctx.input.cookiecutterCompat,
|
||||
additionalTemplateFilters,
|
||||
additionalTemplateGlobals,
|
||||
templateFilters,
|
||||
templateGlobals: additionalTemplateGlobals,
|
||||
});
|
||||
|
||||
for (const location of allEntriesInTemplate) {
|
||||
|
||||
Reference in New Issue
Block a user