mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 04:27:34 +00:00
16 lines
350 B
TypeScript
16 lines
350 B
TypeScript
import * as github from '@actions/github';
|
|
import {ClientType} from './types';
|
|
|
|
export const setLabels = async (
|
|
client: ClientType,
|
|
prNumber: number,
|
|
labels: string[]
|
|
) => {
|
|
await client.rest.issues.setLabels({
|
|
owner: github.context.repo.owner,
|
|
repo: github.context.repo.repo,
|
|
issue_number: prNumber,
|
|
labels: labels
|
|
});
|
|
};
|