@node-core/utils 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/ci/run_ci.js +4 -2
  2. package/package.json +1 -1
package/lib/ci/run_ci.js CHANGED
@@ -26,7 +26,9 @@ export class RunPRJob {
26
26
  this.prData = new PRData({ prid, owner, repo }, cli, request);
27
27
  this.certifySafe =
28
28
  certifySafe ||
29
- new PRChecker(cli, this.prData, request, {}).checkCommitsAfterReview();
29
+ Promise.all([this.prData.getReviews(), this.prData.getPR()]).then(() =>
30
+ new PRChecker(cli, this.prData, request, {}).checkCommitsAfterReview()
31
+ );
30
32
  }
31
33
 
32
34
  async getCrumb() {
@@ -68,7 +70,7 @@ export class RunPRJob {
68
70
  async start() {
69
71
  const { cli, certifySafe } = this;
70
72
 
71
- if (!certifySafe) {
73
+ if (!(await certifySafe)) {
72
74
  cli.error('Refusing to run CI on potentially unsafe PR');
73
75
  return false;
74
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-core/utils",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Utilities for Node.js core collaborators",
5
5
  "type": "module",
6
6
  "engines": {