@node-core/utils 5.12.0 → 5.12.2

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.
package/lib/ci/run_ci.js CHANGED
@@ -26,7 +26,7 @@ export class RunPRJob {
26
26
  this.prData = new PRData({ prid, owner, repo }, cli, request);
27
27
  this.certifySafe =
28
28
  certifySafe ||
29
- Promise.all([this.prData.getReviews(), this.prData.getPR()]).then(() =>
29
+ Promise.all([this.prData.getReviews(), this.prData.getCommits()]).then(() =>
30
30
  (this.certifySafe = new PRChecker(cli, this.prData, request, {}).getApprovedTipOfHead())
31
31
  );
32
32
  }
package/lib/pr_checker.js CHANGED
@@ -531,7 +531,7 @@ export default class PRChecker {
531
531
  const { maxCommits } = argv;
532
532
 
533
533
  if (commits.length === 0) {
534
- cli.warn('No commits found');
534
+ cli.warn('No commits detected');
535
535
  return false;
536
536
  }
537
537
 
@@ -13,6 +13,9 @@ query Reviews($prid: Int!, $owner: String!, $repo: String!, $after: String) {
13
13
  author {
14
14
  login
15
15
  }
16
+ commit {
17
+ oid
18
+ }
16
19
  authorCanPushToRepository
17
20
  url
18
21
  publishedAt
package/lib/reviews.js CHANGED
@@ -29,6 +29,7 @@ export class Review {
29
29
  * @property {string} bodyText
30
30
  * @property {string} state
31
31
  * @property {{login: string}} author
32
+ * @property {{oid:string}} commit
32
33
  * @property {string} url
33
34
  * @property {string} publishedAt
34
35
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-core/utils",
3
- "version": "5.12.0",
3
+ "version": "5.12.2",
4
4
  "description": "Utilities for Node.js core collaborators",
5
5
  "type": "module",
6
6
  "engines": {