MCPcopy Create free account
hub / github.com/ezyang/ghstack / _update_issue_comment

Method _update_issue_comment

src/ghstack/github_fake.py:442–449  ·  view source on GitHub ↗
(
        self, owner: str, name: str, comment_id: int, input: UpdateIssueCommentInput
    )

Source from the content-addressed store, hash-verified

440 }
441
442 def _update_issue_comment(
443 self, owner: str, name: str, comment_id: int, input: UpdateIssueCommentInput
444 ) -> None:
445 state = self.state
446 repo = state.repository(owner, name)
447 comment = state.issue_comment(repo, comment_id)
448 if (r := input.get("body")) is not None:
449 comment.body = r
450
451 # NB: This may have a payload, but we don't
452 # use it so I didn't bother constructing it.

Callers 1

restMethod · 0.95

Calls 3

issue_commentMethod · 0.80
repositoryMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected