From 99d4fd56896dad572cbb2066044fb5b2df17d558 Mon Sep 17 00:00:00 2001 From: Arthur Gavlyukovskiy Date: Tue, 21 Mar 2023 16:31:04 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Johan Haals Signed-off-by: Arthur Gavlyukovskiy --- .changeset/fuzzy-wombats-search.md | 2 +- .../src/scaffolder/actions/builtin/fetch/helpers.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.changeset/fuzzy-wombats-search.md b/.changeset/fuzzy-wombats-search.md index ca1754acc9..693e42399a 100644 --- a/.changeset/fuzzy-wombats-search.md +++ b/.changeset/fuzzy-wombats-search.md @@ -2,4 +2,4 @@ '@backstage/plugin-scaffolder-backend': minor --- -Added `fetch:plain:file` action to fetch a single file +Added `fetch:plain:file` action to fetch a single file, this action is also added to the list of built-in actions. diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/fetch/helpers.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/fetch/helpers.ts index ac44f0a8a5..301c9991c4 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/fetch/helpers.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/fetch/helpers.ts @@ -53,9 +53,7 @@ export async function fetchContents(options: { /** * A helper function that reads the content of a single file from the given URL. - * Can be used in your own actions, and also used behind fetch:plain:file - * - * @public + * Can be used in your own actions, and also used behind `fetch:plain:file` */ export async function fetchFile(options: { reader: UrlReader;