Files
npm-audit-action/src/pr.ts

17 lines
289 B
TypeScript
Raw Normal View History

import { Octokit } from '@octokit/rest'
export async function createComment(
octokit: Octokit,
owner: string,
repo: string,
prNumber: number,
body: string
): Promise<void> {
await octokit.issues.createComment({
owner,
repo,
issue_number: prNumber,
body
})
}