@aki77/actions-replace-comment

import * as core from '@actions/core' import * as github from '@actions/github' import replaceComment from '@aki77/actions-replace-comment'

Usage no npm install needed!

<script type="module">
  import aki77ActionsReplaceComment from 'https://cdn.skypack.dev/@aki77/actions-replace-comment';
</script>

README

@aki77/actions-replace-comment

Usage

import * as core from '@actions/core'
import * as github from '@actions/github'
import replaceComment from '@aki77/actions-replace-comment'

async function run(): Promise<void> {
  await replaceComment({
    token: core.getInput('token'),
    owner: github.context.repo.owner,
    repo: github.context.repo.repo,
    issue_number: github.context.issue.number,
    body: "# Title\n\nDescription...",
  })
}