Commit Graph

57 Commits

Author SHA1 Message Date
blam 9f03f04916 chore: duplicate some of the logging work
Signed-off-by: blam <ben@blam.sh>
2024-03-11 16:20:06 +01:00
blam 02ee4665a0 chore: added changeset
Signed-off-by: blam <ben@blam.sh>
2024-03-11 16:20:06 +01:00
blam f02e445cf5 chore: use redactor
Signed-off-by: blam <ben@blam.sh>
2024-03-11 16:20:06 +01:00
Camila Belo 4fd8dffdd9 refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-03-05 11:18:20 +01:00
Camila Belo 0139e4c36e feat(scaffolder-backend): start migrating to use new auth services
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-03-05 11:18:18 +01:00
Bogdan Nechyporenko bbd1fe19ab Made "checkpoint" on scaffolder action context non-optional (#23291)
* Made "checkpoint" on scaffolder action context non-optional
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-29 10:41:34 +01:00
Fredrik Adelöw 3bb30d272d Merge pull request #23289 from RedlineTriad/fix-fetch-for-binary-files
fix!: avoid binary file corruption in fetch action
2024-02-27 16:51:17 +01:00
RedlineTriad 85f4723b1b fix!: avoid binary file corruption in fetch action
The `.toString()` caused all non utf-8 data to be corrupted on disk.
This caused issues when downloading binary files such as zip archives.

Fixes #22899

Signed-off-by: RedlineTriad <39059512+RedlineTriad@users.noreply.github.com>
2024-02-27 16:26:38 +01:00
bnechyporenko 2d40f79c44 wip
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-18 11:32:42 +01:00
bnechyporenko 562270b6dd wip
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-17 15:08:35 +01:00
bnechyporenko f0c50af246 Merge remote-tracking branch 'origin/master' into task-action-idempotency 2024-02-17 15:06:42 +01:00
cmoulliard f6426a32f9 WIP. Create action to publish on gitea server
Signed-off-by: cmoulliard <cmoulliard@redhat.com>
2024-02-16 11:57:43 +01:00
bnechyporenko f94cd8bf3e + unit test
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-11 23:14:05 +01:00
bnechyporenko 4a460034da wip
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-10 14:41:10 +01:00
bnechyporenko 2b900fee6d wip
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-10 14:34:14 +01:00
bnechyporenko a2ee37bc6d wip
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-08 21:20:16 +01:00
bnechyporenko 92582f17a0 wip
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-08 20:43:27 +01:00
bnechyporenko ca7ec6a0cb Checkpoint
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-06 20:30:27 +01:00
bnechyporenko 07c2c2e7a7 Checkpoint
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-04 21:30:32 +01:00
bnechyporenko 245617991c Checkpoint
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-04 20:43:59 +01:00
bnechyporenko acb684e1c6 Checkpoint
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-02-04 19:55:02 +01:00
blam 75dd39d084 chore: support passing through token in fetchContents and fetchFile
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2024-01-29 11:43:42 +01:00
bnechyporenko 0fbebb3788 Merge remote-tracking branch 'origin/master' into rec-tasks-version-1 2024-01-23 13:01:39 +01:00
Jason Froehlich f7cc86f9dd clean-up code, fixed issue number and added import
Signed-off-by: Jason Froehlich <jfroehlich12@gmail.com>
2024-01-23 11:32:19 +01:00
Jason Froehlich b8b8b88413 made git commands more generic and resusable
Signed-off-by: Jason Froehlich <jfroehlich12@gmail.com>
2024-01-23 11:32:19 +01:00
Jason Froehlich c700fdc724 Updated release tag on commitAndPushBranch function and api-report
Signed-off-by: Jason Froehlich <jfroehlich12@gmail.com>
2024-01-23 11:32:19 +01:00
Jason Froehlich 9e64c026ef Fix for Issue ##21762
Signed-off-by: Jason Froehlich <jfroehli@redhat.com>
2024-01-23 11:32:18 +01:00
bnechyporenko e5a3599819 incorporated some of feedback
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-01-20 15:49:32 +01:00
bnechyporenko 11b9a08e92 Recoverable tasks [version 1]
Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com>
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
2024-01-14 16:24:05 +01:00
blam 57d84d922a chore: codereview comments
Signed-off-by: blam <ben@blam.sh>
2023-12-09 10:41:24 +01:00
blam 7640fe4957 chore: re-exported of the types
Signed-off-by: blam <ben@blam.sh>
2023-12-06 15:06:18 +01:00
blam 04559e3422 chore: update API reports
Signed-off-by: blam <ben@blam.sh>
2023-12-06 14:29:03 +01:00
blam 81f57ff279 chore: move some other things around a little bit
Signed-off-by: blam <ben@blam.sh>
2023-12-06 12:45:46 +01:00
Patrik Oldsberg 8613ba3928 plugins: remove usages of --experimental-type-build
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-22 11:49:44 +02:00
Patrik Oldsberg a4c08241ad switch to TypeScript 5.0 + 5.2 in create-app
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-18 17:47:57 +02:00
Patrik Oldsberg 349611126a scaffolder-backend: removed alpha options
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-08-15 16:27:35 +02:00
Patrik Oldsberg e07a4914f6 scaffolder-backend: move more types to -node
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-08-15 16:16:18 +02:00
Ben Lambert 46454c148f Merge pull request #18157 from alexef/scaffolder-each
scaffolder: enable each property on task step (#8890)
2023-08-11 14:54:31 +02:00
Alex Eftimie 5a432881d7 Merge branch 'master' into scaffolder-each 2023-08-03 09:01:29 +03:00
Brian Fletcher e07f7fcb75 Merge branch 'master' into add-examples
Signed-off-by: Brian Fletcher <brian@roadie.io>
2023-08-02 10:25:48 +01:00
Fredrik Adelöw d3b31a791e Expose executeShellCommand, RunCommandOptions, and fetchContents from the node package
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-07-31 14:52:03 +02:00
Brian Fletcher 0b1d775be0 Adds a number of examples for builtin functions
This patch also proposes:
- changing the pattern by which the examples are imported
- adds tests for the examples

Signed-off-by: Brian Fletcher <brian@roadie.io>
2023-07-28 11:07:03 +01:00
Alex Eftimie a0303ee5ef scaffolder: enable each property on task step (#8890)
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
2023-06-07 03:46:41 +02:00
Andreas Berger 6d954de4b0 Update typings for RouterOptions::actions and ScaffolderActionsExtensionPoint::addActions to allow any kind of action being assigned to it.
Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
2023-04-20 18:17:02 +02:00
Patrik Oldsberg 2898b6c8d5 fixes for TypeScript 5.0
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-03-29 12:24:19 +02:00
blam f7e8b8ba83 chore: simplify the types a little bit
Signed-off-by: blam <ben@blam.sh>
2023-03-28 14:52:46 +02:00
Andreas Berger ce0cf80ef2 Allow defining output type in createTemplateAction
This change allow to define the output type of the createTemplateAction.
This is necessary for zod definitions, which results in "Type instantiation is excessively deep and possibly infinite."

Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
2023-03-28 13:30:23 +02:00
Andreas Berger 0da07e505b Distinguish between undefined and unknown action outputs
Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
2023-03-28 13:30:22 +02:00
Andreas Berger a7eb36c6e3 Improve type-check for scaffolder output parameters
If an action uses zod to define the actions output schema, it is now ensured that `ctx.output` is using only the defined properties

Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
2023-03-28 13:29:01 +02:00
Bogdan Nechyporenko e27ddc36da Cancelling the running task (executing of a scaffolder template)
Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com>
2023-03-09 15:40:47 +01:00