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

Method comment

ci/scripts/github/github_tvmbot.py:370–384  ·  view source on GitHub ↗

Leave the comment 'text' on this PR

(self, text: str)

Source from the content-addressed store, hash-verified

368 return self.search_users(user, MENTIONABLE_QUERY)["mentionableUsers"]["nodes"]
369
370 def comment(self, text: str) -> None:
371 """
372 Leave the comment 'text' on this PR
373 """
374 logging.info(f"Commenting:\n{text}")
375 # TODO: Update latest comment in-place if there has been no activity
376 data = {"body": text}
377 url = f"issues/{self.number}/comments"
378 if self.dry_run:
379 logging.info(
380 f"Dry run, would have commented on url={url} commenting with data={to_json_str(data)}"
381 )
382 return
383
384 self.github.post(url, data=data)
385
386 def state(self) -> str:
387 """

Callers 2

comment_failureMethod · 0.80

Calls 3

to_json_strFunction · 0.85
infoMethod · 0.80
postMethod · 0.80

Tested by

no test coverage detected