Skip to content

Commit

Permalink
Merge pull request #29 from respond-io/flight/support-dev-versions
Browse files Browse the repository at this point in the history
chore: Update logging statements in index.js
  • Loading branch information
hasithaishere committed May 9, 2024
2 parents ad839d8 + 4ec63c1 commit 4124779
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35632,6 +35632,14 @@ class Git {
page: index
});

console.log(JSON.stringify({
owner,
repo,
base,
head,
page: index
}));

compareCommits.commits = compareCommits.commits.concat(commits);
compareCommits.files = compareCommits.files.concat(files);
compareCommits.total_commits = compareCommits.total_commits + commits.length;
Expand Down Expand Up @@ -36007,12 +36015,6 @@ const main = async () => {

const branch = contextPayload.pull_request.base.ref;

core.warning('Owner:', owner);
core.warning('Owner222:', branch);
core.warning('Owner333:', contextPayload.pull_request);

console.log('Branch:', contextPayload.pull_request.base.ref);

const octokit = new github.getOctokit(token);

// Load configuration file
Expand Down
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ const main = async () => {

const branch = contextPayload.pull_request.base.ref;

core.warning('Owner:', owner);
core.warning('Owner222:', branch);
core.warning('Owner333:', contextPayload.pull_request);

console.log('Branch:', contextPayload.pull_request.base.ref);

const octokit = new github.getOctokit(token);

// Load configuration file
Expand Down
8 changes: 8 additions & 0 deletions utils/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@ class Git {
page: index
});

console.log(JSON.stringify({
owner,
repo,
base,
head,
page: index
}));

compareCommits.commits = compareCommits.commits.concat(commits);
compareCommits.files = compareCommits.files.concat(files);
compareCommits.total_commits = compareCommits.total_commits + commits.length;
Expand Down

0 comments on commit 4124779

Please sign in to comment.