Skip to content

Commit

Permalink
Hide unsupported actions in WorkflowRun's index page
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Jan 19, 2022
1 parent c291a2e commit 319e72b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/api/app/components/workflow_run_row_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ def initialize(workflow_run:)
def hook_action
return payload['action'] if
hook_event == 'pull_request' && ScmWebhookEventValidator::ALLOWED_PULL_REQUEST_ACTIONS.include?(payload['action'])

'Unsupported'
end

def hook_event
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/components/workflow_run_row_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
end

it 'does not show the action anywhere' do
expect(rendered_component).to have_text('Unsupported')
expect(rendered_component).not_to have_text('Unsupported')
end
end
end
Expand Down

0 comments on commit 319e72b

Please sign in to comment.