Skip to content

Commit

Permalink
fix: add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Aug 13, 2020
1 parent 1d43ddb commit b146162
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions __tests__/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function getBaseEnv(): NodeJS.ProcessEnv {
}

describe('integration', () => {
beforeEach(() => jest.setTimeout(10000))
// TODO: fix tests to reflect new exit code logic
// TODO: add tests for outputs

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ export default async function run(disableRetry?: boolean): Promise<void> {
} else if (OUTPUT_TYPE === 'issue') {
// else output an issue, and don't set the exit code
const octokit = new Octokit({
request: disableRetry ? {retries: 0} : undefined
request: disableRetry ? {retries: 0} : undefined,
log: {
debug: core.debug,
info: core.info,
warn: core.warning,
error: core.error
}
})
const [owner, repo] = REPO.split('/')
const issueContent = markdownFormatter.formatOutput(result, true)
Expand Down

0 comments on commit b146162

Please sign in to comment.