mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-15 18:45:43 +00:00
feat: append to previous comment message
This commit is contained in:
parent
dd253e3148
commit
168a45153d
4 changed files with 19 additions and 3 deletions
|
|
@ -67,6 +67,14 @@ it("updateComment", async () => {
|
|||
comment_id: 456,
|
||||
body: "<!-- Sticky Pull Request CommentTypeA -->\nhello there"
|
||||
});
|
||||
|
||||
expect(
|
||||
await updateComment(octokit, repo, 456, "hello there", "TypeA", "<!-- Sticky Pull Request CommentTypeA -->\nhello there")
|
||||
).toBeUndefined();
|
||||
expect(octokit.issues.updateComment).toBeCalledWith({
|
||||
comment_id: 456,
|
||||
body: "<!-- Sticky Pull Request CommentTypeA -->\nhello there\nhello there"
|
||||
});
|
||||
});
|
||||
it("createComment", async () => {
|
||||
const octokit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue