Skip to content

Commit

Permalink
fix: debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Nov 6, 2023
1 parent 141df90 commit f1f11fd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
5 changes: 1 addition & 4 deletions 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.

5 changes: 2 additions & 3 deletions dist/pull-request.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/pull-request.js.map

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

5 changes: 2 additions & 3 deletions src/pull-request.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { getInput, isDebug } from '@actions/core';
import { getInput, debug } from '@actions/core';

import { CustomOctokit } from './octokit';

import { pullRequestApiSchema } from './schema/pull-request';
import { PullRequestMetadata } from './schema/input';
import { debug } from 'console';

export class PullRequest {
readonly number: number;
Expand Down Expand Up @@ -40,7 +39,7 @@ export class PullRequest {
}
);

isDebug() && debug(`Pull Request: ${JSON.stringify(data)}`);
debug(`Pull Request: ${JSON.stringify(data)}`);
const safeData = pullRequestApiSchema.parse(data);

this.title = safeData.title;
Expand Down

0 comments on commit f1f11fd

Please sign in to comment.