Skip to content
代码片段 群组 项目
提交 54e18241 编辑于 作者: Chad Woolley's avatar Chad Woolley
浏览文件

Add danger tooling for GLFM specification files

- All are backend+frontend, except the prosemirror
  json file, which is frontend only
上级 0788478c
No related branches found
No related tags found
无相关合并请求
......@@ -31,6 +31,8 @@
end
where(:path, :expected_categories) do
'glfm_specification/example_snapshots/prosemirror_json.yml' | [:frontend]
'glfm_specification/input/glfm_anything.yml' | [:frontend, :backend]
'usage_data.rb' | [:database, :backend, :product_intelligence]
'doc/foo.md' | [:docs]
'CONTRIBUTING.md' | [:docs]
......
......@@ -17,6 +17,10 @@ module ProjectHelper
# First-match win, so be sure to put more specific regex at the top...
CATEGORIES = {
# GitLab Flavored Markdown Specification files. See more context at: https://docs.gitlab.com/ee/development/gitlab_flavored_markdown/specification_guide/#specification-files
%r{\Aglfm_specification/.+prosemirror_json\.yml} => [:frontend],
%r{\Aglfm_specification/.+\.yml} => [:frontend, :backend],
[%r{usage_data\.rb}, %r{^(\+|-).*\s+(count|distinct_count|estimate_batch_distinct_count)\(.*\)(.*)$}] => [:database, :backend, :product_intelligence],
%r{\A((ee|jh)/)?config/feature_flags/} => :feature_flag,
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册