Skip to content

Commit

Permalink
Merge pull request #1009 from ibi-group/add-append-transformation
Browse files Browse the repository at this point in the history
Add Append Transformation
  • Loading branch information
miles-grant-ibigroup authored Apr 1, 2024
2 parents d457b45 + da9c343 commit 1efb3f0
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 1efb3f0

Please sign in to comment.