From 7e3975865fa00692545865e15a2c90350bdf6d9a Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:56:33 -0700 Subject: [PATCH] Fix placeholder strings in prompt template modal (#419) (#420) (cherry picked from commit 2582b05f2c053ab8c09f9682b78507176801f97b) Signed-off-by: Tyler Ohlsen Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .github/workflows/backport.yml | 11 +++++++++++ .../modals/configure_prompt_modal.tsx | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 9537ddeb..197c362f 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -12,6 +12,17 @@ jobs: contents: write pull-requests: write name: Backport + # Only react to merged PRs for security reasons. + # See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target. + if: > + github.event.pull_request.merged + && ( + github.event.action == 'closed' + || ( + github.event.action == 'labeled' + && contains(github.event.label.name, 'backport') + ) + ) steps: - name: GitHub App token id: github_app_token diff --git a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/configure_prompt_modal.tsx b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/configure_prompt_modal.tsx index ad626ecd..85b0f874 100644 --- a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/configure_prompt_modal.tsx +++ b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/configure_prompt_modal.tsx @@ -297,5 +297,5 @@ const columns = [ function getPlaceholderString(type: string, label: string) { return type === 'array' ? `\$\{parameters.${label}.toString()\}` - : `\$\\{parameters.${label}\\}`; + : `\$\{parameters.${label}\}`; }