Skip to content

Commit

Permalink
DEVEX-43: Log repo details
Browse files Browse the repository at this point in the history
  • Loading branch information
unalpolat committed Nov 22, 2023
1 parent 5e258f5 commit 8c758f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ function getPRDetails() {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
const { repository, number } = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH || "", "utf8"));
console.log(repository);
console.log(number);
const prResponse = yield octokit.pulls.get({
owner: repository.owner.login,
repo: repository.name,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ async function getPRDetails(): Promise<PRDetails> {
const { repository, number } = JSON.parse(
readFileSync(process.env.GITHUB_EVENT_PATH || "", "utf8")
);
console.log(repository);
console.log(number);
const prResponse = await octokit.pulls.get({
owner: repository.owner.login,
repo: repository.name,
Expand Down

0 comments on commit 8c758f9

Please sign in to comment.