Skip to content
代码片段 群组 项目
提交 fe176e75 编辑于 作者: Dave Liu's avatar Dave Liu
浏览文件

Update content_blocked_state.rb

上级 7cc8d280
分支 main-jh
No related tags found
无相关合并请求
Pipeline #131404 已失败
......@@ -37,6 +37,7 @@ def self.blocked?(container_identifier:, commit_sha:, path:)
where(container_identifier: container_identifier, commit_sha: commit_sha, path: path).exists?
end
# Find by container
def self.find_by_container_commit_path(container, commit_sha, path)
path = path&.gsub(%r/^\//, "")
container_identifier = container.repository.repo_type.identifier_for_container(container)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册