Skip to content

Commit

Permalink
fix: More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Manouvrier committed Jul 17, 2023
1 parent 5a6b12a commit efafc95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ async function run(): Promise<void> {
core.debug(`Using ${filename} for setting assignees`) // debug is only output if you set the secret `ACTIONS_STEP_DEBUG` to true

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

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

// Set assignees
await octokit.rest.issues.addAssignees({
Expand Down

0 comments on commit efafc95

Please sign in to comment.