Follow-up from "Show an Alert that a user is not using deployments"
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The following discussion from !57160 (merged) should be addressed:
-
@f_caplette started a discussion: (+3 comments) @afontaine While I am here (sorry about that
😄 ) users can have custom file names for their CI configs. So I would advocate for us to use rails@project.ci_config_path_or_default
instead that can return to us the current path name for CI config files. You could also perhaps instead useediting_ci_config
which takes the file path and will also check if it ends with that specific extension if someone is seeing agitlab-ci.yml
file. I previously had to use it like so:- is_ci_config_file = defined?(@blob) && defined?(@project) ? editing_ci_config?.to_s : 'false'
As there are at least 2 places the WebIDE wants to know whether or not we are "editing the gitlab-ci file" (templates bar and alerts), it makes sense to abstract this check out to be easy to use in both places.