mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-09 16:00:06 +00:00
parent
c873eaf14f
commit
033d20d120
5 changed files with 21 additions and 14 deletions
|
|
@ -1,3 +1,7 @@
|
|||
function headerComment(header) {
|
||||
return `<!-- Sticky Pull Request Comment${header} -->`;
|
||||
}
|
||||
|
||||
export async function findPreviousComment(octokit, repo, issue_number, header) {
|
||||
const { data: comments } = await octokit.issues.listComments({
|
||||
...repo,
|
||||
|
|
@ -20,7 +24,3 @@ export async function createComment(octokit, repo, issue_number, body, header) {
|
|||
body: `${headerComment(header)}\n${body}`
|
||||
});
|
||||
}
|
||||
|
||||
function headerComment(header) {
|
||||
return `<!-- Sticky Pull Request Comment${header} -->`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue