Skip to content

Commit

Permalink
update with output
Browse files Browse the repository at this point in the history
  • Loading branch information
robmaxwellirl committed Oct 7, 2023
1 parent 4751f53 commit e86836f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 26 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/codeowner.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as core from '@actions/core'

export interface CodeOwner {
path: string
username: string
Expand Down Expand Up @@ -38,6 +40,7 @@ export function iterateOnCodeOwners(
const orphanedFiles: string[] = files
for (const codeOwner of codeOwners) {
for (const file of files) {
core.info('Checking file ' + file + ' against ' + codeOwner.path)
if (file?.match(codeOwner.path)) {
let index = orphanedFiles.indexOf(file)
if (index > -1) {
Expand Down

0 comments on commit e86836f

Please sign in to comment.