MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_gitlab_hooks_path

Function cbm_gitlab_hooks_path

src/cli/cli.c:8096–8107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8094}
8095
8096static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path,
8097 size_t path_size) {
8098 const char *base = registry->options.home_dir;
8099 const char *suffix = ".gitlab/duo/hooks.json";
8100 if (registry->options.is_windows && registry->options.appdata_dir &&
8101 registry->options.appdata_dir[0]) {
8102 base = registry->options.appdata_dir;
8103 suffix = "GitLab/duo/hooks.json";
8104 }
8105 int written = snprintf(path, path_size, "%s/%s", base, suffix);
8106 return written > 0 && (size_t)written < path_size;
8107}
8108
8109static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path,
8110 size_t path_size) {

Calls

no outgoing calls

Tested by

no test coverage detected