MCPcopy Create free account
hub / github.com/alibaba/open-code-review / commit

Method commit

scripts/github-actions/test_review_pr.py:118–122  ·  view source on GitHub ↗
(self, name, content=None)

Source from the content-addressed store, hash-verified

116 return subprocess.check_output(["git", *args], cwd=self.source, env=self.env, text=True).strip()
117
118 def commit(self, name, content=None):
119 (self.source / name).write_text(name if content is None else content)
120 self.git("add", name)
121 self.git("commit", "-qm", name)
122 return self.git("rev-parse", "HEAD")
123
124 def start(self, *args, cwd=None, **env):
125 child = subprocess.Popen([sys.executable, str(self.installed), *args], cwd=cwd or self.source,

Calls 1

gitMethod · 0.95

Tested by

no test coverage detected