mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
mononoke/validate-owners: implement secure-owners check
Summary: For the OWNERS files in `secure` and `core` we need to check that all the groups and users mentioned in the OWNERS are in the secure owners group. Reviewed By: StanislavGlebik Differential Revision: D26761772 fbshipit-source-id: 02ad2bc45c82792e51702cd4d8d092557c76c015
This commit is contained in:
parent
355232b627
commit
fc0d0732c5
@ -53,7 +53,7 @@ pub async fn load_hooks(
|
||||
.await?
|
||||
{
|
||||
ChangesetHook(hook)
|
||||
} else if let Some(hook) = hook_name_to_file_hook(&hook.name, &hook.config)? {
|
||||
} else if let Some(hook) = hook_name_to_file_hook(fb, &hook.name, &hook.config)? {
|
||||
FileHook(hook)
|
||||
} else {
|
||||
return Err(ErrorKind::InvalidRustHook(hook.name.clone()).into());
|
||||
|
@ -60,6 +60,7 @@ pub fn hook_name_to_changeset_hook<'a>(
|
||||
}
|
||||
|
||||
pub fn hook_name_to_file_hook(
|
||||
_fb: FacebookInit,
|
||||
name: &str,
|
||||
config: &HookConfig,
|
||||
) -> Result<Option<Box<dyn FileHook + 'static>>> {
|
||||
|
Loading…
Reference in New Issue
Block a user