mirror of
https://github.com/actions/labeler.git
synced 2025-12-15 06:27:13 +00:00
Update naming
This commit is contained in:
@@ -3,7 +3,7 @@ import * as github from '@actions/github';
|
||||
import {getChangedFiles} from './get-changed-files';
|
||||
import {ClientType} from './types';
|
||||
|
||||
export async function* getChangedPullRequests(
|
||||
export async function* getPullRequests(
|
||||
client: ClientType,
|
||||
prNumbers: number[]
|
||||
) {
|
||||
|
||||
@@ -33,10 +33,9 @@ async function labeler() {
|
||||
|
||||
const client: ClientType = github.getOctokit(token, {}, pluginRetry.retry);
|
||||
|
||||
for await (const pullRequest of api.getChangedPullRequests(
|
||||
client,
|
||||
prNumbers
|
||||
)) {
|
||||
const pullRequests = api.getPullRequests(client, prNumbers);
|
||||
|
||||
for await (const pullRequest of pullRequests) {
|
||||
const labelGlobs: Map<string, StringOrMatchConfig[]> =
|
||||
await api.getLabelGlobs(client, configPath);
|
||||
const preexistingLabels = pullRequest.data.labels.map(l => l.name);
|
||||
|
||||
Reference in New Issue
Block a user