Apply suggestion creates too long a title and fails danger check
When using the apply suggestion feature the title of the resulting commit uses the relative path to the file modified. Often, this relative file path is too long and triggers a failure in the Danger check. For example:
Applied suggestion to qa/qa/specs/features/ee/browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb
Is too long a title to pass the Danger check and applying the suggestion would cause the pipeline to fail.
Suggestions:
- truncate the path to the file to just the file name, e.g.
Applied suggestion to restrict_push_protected_branch_spec.rb
- use a tree structure instead of file path (either with or without indentation), e.g.:
qa
└─qa
└─specs
└─features
└─ee
└─browser_ui
└─3_create
└─repository
└─restrict_push_protected_branch_spec.rb
Edited by Walmyr Lima e Silva Filho