package gitea import ( sdk "code.gitea.io/sdk/gitea" ) func (c *Client) PostComment(owner, repo string, issueOrPR int, body string) error { _, _, err := c.api.CreateIssueComment(owner, repo, int64(issueOrPR), sdk.CreateIssueCommentOption{ Body: body, }) return err } func (c *Client) AddReaction(owner, repo string, commentID int64, reaction string) error { _, _, err := c.api.PostIssueCommentReaction(owner, repo, commentID, reaction) return err }