Skip to content

Commit

Permalink
debug log pull request api data
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Nov 6, 2023
1 parent f5fbed2 commit 3d45050
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 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.

2 changes: 2 additions & 0 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.

2 changes: 2 additions & 0 deletions src/pull-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ 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 @@ -34,6 +35,7 @@ export class PullRequest {
}
);

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

this.title = safeData.title;
Expand Down

0 comments on commit 3d45050

Please sign in to comment.