Skip to content

Commit

Permalink
Fix URL update for 'Create workflow' button (list page) (#416)
Browse files Browse the repository at this point in the history
* add replace tab logic

Signed-off-by: Tyler Ohlsen <[email protected]>

* fix backport args

Signed-off-by: Tyler Ohlsen <[email protected]>

---------

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit afcdcce)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Oct 9, 2024
1 parent 341cb3e commit b0cadf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ jobs:
uses: VachaShah/[email protected]
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"
5 changes: 5 additions & 0 deletions public/pages/workflows/workflows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down

0 comments on commit b0cadf0

Please sign in to comment.