INNER CODE UNIT · TypeScript

appendLabelsGithubPR

buildship-ai/buildship · integration/github/octo-kit-add-label/index.ts:4

export default async function appendLabelsGithubPR({
    token,
    owner,
    repo,
    issue_number,
    labels
}) {
    const octokit = new Octokit({
        auth: token
    });
    const issue = await octokit.rest.issues.get({
        owner,
        repo,
        issue_number
    });
    const currentLabels = issue.data.labels.map(label => label.name);
    const newLabels = [...currentLabels, ...labels];
    await octokit.rest.issues.update({

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…