Skip to content

Commit

Permalink
npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikmallya committed Feb 3, 2020
1 parent ed0ae53 commit cca9694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ function run() {
const client = new github.GitHub(core.getInput('githubToken'));
// get all files changed in the PR
const paths = yield getChangedFiles_1.getChangedFiles(github.context, client);
core.debug(`Obtained paths: ${paths}`);
core.info(`Obtained paths: ${paths}`);
// files -> set of codeowners for the files
const owners = yield getCodeOwners_1.getCodeOwnersFromPaths(paths);
core.debug(`Obtained owners for paths: ${owners}`);
core.info(`Obtained owners for paths: ${owners}`);
// set of codeowners -> set of labels
const labels = yield getLabelsFromOwners_1.getLabelsFromOwners(owners);
core.debug(`Obtained labels for change: ${labels}`);
core.info(`Obtained labels for change: ${labels}`);
// apply the set of labels to the PR
yield applyLabels_1.applyLabels(github.context, client, labels);
}
Expand Down

0 comments on commit cca9694

Please sign in to comment.