Skip to content

Commit

Permalink
refactor: add append transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Mar 21, 2024
1 parent d457b45 commit da9c343
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions i18n/english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand Down
3 changes: 2 additions & 1 deletion lib/manager/components/transform/FeedTransformRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const feedTransformationTypes = [
'ReplaceFileFromStringTransformation',
'NormalizeFieldTransformation',
'PreserveCustomFieldsTransformation',
'AddCustomFileTransformation'
'AddCustomFileTransformation',
'AppendToFileTransformation'
]

type TransformRulesProps = {
Expand Down
3 changes: 3 additions & 0 deletions lib/manager/components/transform/FeedTransformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const transformationTypes = {
ReplaceFileFromStringTransformation: {
component: ReplaceFileFromString
},
AppendToFileTransformation: {
component: ReplaceFileFromString
},
ReplaceFileFromVersionTransformation: {
component: ReplaceFileFromVersion
},
Expand Down

0 comments on commit da9c343

Please sign in to comment.