Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimduncan committed Sep 22, 2024
1 parent 202cc30 commit d9f50a0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
13 changes: 13 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29234,6 +29234,7 @@ exports.run = run;
const core = __importStar(__nccwpck_require__(9093));
const github = __importStar(__nccwpck_require__(5942));
async function run() {
var _a, _b, _c;
try {
const token = core.getInput("github-token", { required: true });
const claEndpoint = core.getInput("cla-endpoint", { required: true });
Expand All @@ -29248,6 +29249,18 @@ async function run() {
core.debug(`Pull Request: ${pullRequest}`);
console.log("Hello World");
console.log(`Pull Request: ${pullRequest}`);
console.log(`Pull Request Number: ${pullRequest === null || pullRequest === void 0 ? void 0 : pullRequest.number}`);
console.log(`Pull Request Title: ${pullRequest === null || pullRequest === void 0 ? void 0 : pullRequest.title}`);
console.log(`Pull Request Body: ${pullRequest === null || pullRequest === void 0 ? void 0 : pullRequest.body}`);
console.log(`Pull Request Author: ${(_a = pullRequest === null || pullRequest === void 0 ? void 0 : pullRequest.user) === null || _a === void 0 ? void 0 : _a.login}`);
console.log(`Pull Request Author ID: ${(_b = pullRequest === null || pullRequest === void 0 ? void 0 : pullRequest.user) === null || _b === void 0 ? void 0 : _b.id}`);
console.log(`Pull Request Author Login: ${(_c = pullRequest === null || pullRequest === void 0 ? void 0 : pullRequest.user) === null || _c === void 0 ? void 0 : _c.login}`);
console.log("----------------------------------------");
console.log(`Context: ${context.repo}`);
console.log(`Context: ${context.repo.owner}`);
console.log(`Context: ${context.repo.repo}`);
console.log(`Context: ${context.repo.owner}`);
console.log("----------------------------------------");
console.log(`Owner: ${owner}`);
console.log(`Repo: ${repo}`);
console.log(`CLA Endpoint: ${claEndpoint}`);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ export async function run(): Promise<void> {

console.log("Hello World");
console.log(`Pull Request: ${pullRequest}`);
console.log(`Pull Request Number: ${pullRequest?.number}`);
console.log(`Pull Request Title: ${pullRequest?.title}`);
console.log(`Pull Request Body: ${pullRequest?.body}`);
console.log(`Pull Request Author: ${pullRequest?.user?.login}`);
console.log(`Pull Request Author ID: ${pullRequest?.user?.id}`);
console.log(`Pull Request Author Login: ${pullRequest?.user?.login}`);

console.log("----------------------------------------");
console.log(`Context: ${context.repo}`);
console.log(`Context: ${context.repo.owner}`);
console.log(`Context: ${context.repo.repo}`);
console.log(`Context: ${context.repo.owner}`);
console.log("----------------------------------------");

console.log(`Owner: ${owner}`);
console.log(`Repo: ${repo}`);
console.log(`CLA Endpoint: ${claEndpoint}`);
Expand Down

0 comments on commit d9f50a0

Please sign in to comment.