From da9c34336e3451419caee87fd073d69e2d5c63b9 Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Thu, 21 Mar 2024 16:09:26 -0400 Subject: [PATCH] refactor: add append transformation --- i18n/english.yml | 3 +++ lib/manager/components/transform/FeedTransformRules.js | 3 ++- lib/manager/components/transform/FeedTransformation.js | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/i18n/english.yml b/i18n/english.yml index 3c082b74a..ee3ddcfb3 100644 --- a/i18n/english.yml +++ b/i18n/english.yml @@ -487,6 +487,9 @@ components: AddCustomFileTransformation: label: Add custom file in GTFS. name: Add custom file transformation + AppendToFileTransformation: + label: Append lines to GTFS. + name: Append to file transformation general: fileDefined: below text filePlaceholder: '[choose file]' diff --git a/lib/manager/components/transform/FeedTransformRules.js b/lib/manager/components/transform/FeedTransformRules.js index 689bf691e..96384ef54 100644 --- a/lib/manager/components/transform/FeedTransformRules.js +++ b/lib/manager/components/transform/FeedTransformRules.js @@ -35,7 +35,8 @@ const feedTransformationTypes = [ 'ReplaceFileFromStringTransformation', 'NormalizeFieldTransformation', 'PreserveCustomFieldsTransformation', - 'AddCustomFileTransformation' + 'AddCustomFileTransformation', + 'AppendToFileTransformation' ] type TransformRulesProps = { diff --git a/lib/manager/components/transform/FeedTransformation.js b/lib/manager/components/transform/FeedTransformation.js index 9a6b709d7..215bd0ae8 100644 --- a/lib/manager/components/transform/FeedTransformation.js +++ b/lib/manager/components/transform/FeedTransformation.js @@ -38,6 +38,9 @@ const transformationTypes = { ReplaceFileFromStringTransformation: { component: ReplaceFileFromString }, + AppendToFileTransformation: { + component: ReplaceFileFromString + }, ReplaceFileFromVersionTransformation: { component: ReplaceFileFromVersion },