Skip to content

Commit

Permalink
Additional logging info for some troubleshooting (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matticusau authored Mar 2, 2021
1 parent 4dbe088 commit 895a1ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5329,6 +5329,7 @@ class PRHelper {
completed: 0,
success: 0
};
this.core.info('checksData.check_runs.length: ' + checksData.check_runs.length);
if (checksData && checksData.check_runs.length > 0) {
checksData.check_runs.forEach(element => {
if (element.status === "completed") {
Expand All @@ -5339,6 +5340,9 @@ class PRHelper {
}
});
}
this.core.info('checks.total: ' + checks.total);
this.core.info('checks.completed: ' + checks.completed);
this.core.info('checks.success: ' + checks.success);
return (checks.completed >= (checks.total - 1)) && (checks.success >= (checks.total - 1));
}
catch (error) {
Expand Down
4 changes: 4 additions & 0 deletions src/classes/prhelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export class PRHelper {
success: 0
};

this.core.info('checksData.check_runs.length: ' + checksData.check_runs.length);
if (checksData && checksData.check_runs.length > 0) {
checksData.check_runs.forEach(element => {
if (element.status === "completed") {
Expand All @@ -263,6 +264,9 @@ export class PRHelper {
}
});
}
this.core.info('checks.total: ' + checks.total);
this.core.info('checks.completed: ' + checks.completed);
this.core.info('checks.success: ' + checks.success);

return (checks.completed >= (checks.total - 1)) && (checks.success >= (checks.total - 1));

Expand Down

0 comments on commit 895a1ad

Please sign in to comment.