Skip to content

Commit

Permalink
Merge branch 'master' into releases/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikmallya committed Feb 3, 2020
2 parents 3fc285e + 4705f86 commit ed0ae53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ async function run(): Promise<void> {

// get all files changed in the PR
const paths: string[] = await getChangedFiles(github.context, client)
core.debug(`Obtained paths: ${paths}`)
core.info(`Obtained paths: ${paths}`)

// files -> set of codeowners for the files
const owners: Set<string> = await getCodeOwnersFromPaths(paths)
core.debug(`Obtained owners for paths: ${owners}`)
core.info(`Obtained owners for paths: ${owners}`)

// set of codeowners -> set of labels
const labels: Label[] = await getLabelsFromOwners(owners)
core.debug(`Obtained labels for change: ${labels}`)
core.info(`Obtained labels for change: ${labels}`)

// apply the set of labels to the PR
await applyLabels(github.context, client, labels)
Expand Down

0 comments on commit ed0ae53

Please sign in to comment.