From afcdcce0c4a942c1fe0f459852d5fbbf33af2359 Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Wed, 9 Oct 2024 11:40:25 -0700 Subject: [PATCH] Fix URL update for 'Create workflow' button (list page) (#416) * add replace tab logic Signed-off-by: Tyler Ohlsen * fix backport args Signed-off-by: Tyler Ohlsen --------- Signed-off-by: Tyler Ohlsen --- .github/workflows/backport.yml | 4 +++- public/pages/workflows/workflows.tsx | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index bd4dfc69..9537ddeb 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -25,4 +25,6 @@ jobs: uses: VachaShah/backport@v2.2.0 with: github_token: ${{ steps.github_app_token.outputs.token }} - branch_name: backport/backport-${{ github.event.number }} + head_template: backport/backport-<%= number %>-to-<%= base %> + labels_template: "<%= JSON.stringify([...labels, 'autocut']) %>" + failure_labels: "failed backport" diff --git a/public/pages/workflows/workflows.tsx b/public/pages/workflows/workflows.tsx index 54d45680..e4b81456 100644 --- a/public/pages/workflows/workflows.tsx +++ b/public/pages/workflows/workflows.tsx @@ -283,6 +283,11 @@ export function Workflows(props: WorkflowsProps) { fill={true} onClick={() => { setSelectedTabId(WORKFLOWS_TAB.CREATE); + replaceActiveTab( + WORKFLOWS_TAB.CREATE, + props, + dataSourceId + ); }} data-testid="createWorkflowButton" >