Skip to content

Commit

Permalink
Merge pull request #12098 from danidoni/hide-unsupported-actions-in-w…
Browse files Browse the repository at this point in the history
…orkflow-run-index-page

Hide unsupported actions in WorkflowRun's index page
  • Loading branch information
dmarcoux committed Jan 20, 2022
2 parents b50a3b6 + 319e72b commit d6ce17a
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 d6ce17a

Please sign in to comment.