MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / _get_full_commit_message

Function _get_full_commit_message

git_utils.py:29–42  ·  view source on GitHub ↗
(message, module_name, frid, render_id)

Source from the content-addressed store, hash-verified

27
28
29def _get_full_commit_message(message, module_name, frid, render_id) -> str:
30 full_message = message
31
32 if module_name or frid or render_id:
33 full_message += "\n\n" + "-" * 80 + "\n"
34
35 if frid:
36 full_message += f"\n\n{RENDERED_FRID_MESSAGE.format(frid)}"
37 if module_name:
38 full_message += f"\n\n{MODULE_NAME_MESSAGE.format(module_name)}"
39 if render_id:
40 full_message += f"\n\n{RENDER_ID_MESSAGE.format(render_id)}"
41
42 return full_message
43
44
45def _ensure_git_config(repo: Repo) -> None:

Callers 3

init_git_repoFunction · 0.85
clone_repoFunction · 0.85
add_all_files_and_commitFunction · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected