MCPcopy Index your code
hub / github.com/apache/tvm / react

Method react

ci/scripts/github/github_tvmbot.py:246–255  ·  view source on GitHub ↗

React with a thumbs up to a comment

(self, comment: dict[str, Any], content: str)

Source from the content-addressed store, hash-verified

244 return json.dumps(self.raw, indent=2)
245
246 def react(self, comment: dict[str, Any], content: str):
247 """
248 React with a thumbs up to a comment
249 """
250 url = f"issues/comments/{comment['id']}/reactions"
251 data = {"content": content}
252 if self.dry_run:
253 logging.info(f"Dry run, would have +1'ed to {url} with {data}")
254 else:
255 self.github.post(url, data=data)
256
257 def head_commit(self):
258 return self.raw["commits"]["nodes"][0]["commit"]

Callers 1

github_tvmbot.pyFile · 0.80

Calls 2

infoMethod · 0.80
postMethod · 0.80

Tested by

no test coverage detected