Skip to content

Commit efafc95

Browse files
author
Christopher Manouvrier
committed
fix: More logging
1 parent 5a6b12a commit efafc95

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ async function run(): Promise<void> {
88
core.debug(`Using ${filename} for setting assignees`) // debug is only output if you set the secret `ACTIONS_STEP_DEBUG` to true
99

1010
const watchers = new Codeowners(undefined, filename)
11+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
12+
core.debug(`Watchers: ${JSON.stringify((watchers as any).ownerEntries)}`)
1113

1214
const githubToken = core.getInput('github-token', {required: true})
1315
const octokit = github.getOctokit(githubToken)
@@ -26,7 +28,7 @@ async function run(): Promise<void> {
2628
watchers.getOwner(file.filename)
2729
)
2830
const uniqueWatchers = [...new Set(watchersForChangedFiles)]
29-
core.debug(`Watchers: ${JSON.stringify(uniqueWatchers)}`)
31+
core.debug(`Filtered watchers: ${JSON.stringify(uniqueWatchers)}`)
3032

3133
// Set assignees
3234
await octokit.rest.issues.addAssignees({

0 commit comments

Comments
 (0)