co-maintainer 0.4.8 → 0.4.9

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "co-maintainer",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Analyzes a GitHub repository and writes repository-specific contribution guidance.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -271,7 +271,8 @@ async function pullRequests(client, options, previous, phase, progress) {
271
271
  const discussionUnchanged = cached?.updatedAt === current.updatedAt;
272
272
  const decisionKnown = typeof cached?.changesRequested === "boolean";
273
273
  const diffUnchanged = cached?.headSha === current.headSha && Boolean(cached?.diff);
274
- let dropped = only && discussionUnchanged && cached?.changesRequested === false;
274
+ let droppedFromCache = only && discussionUnchanged && cached?.changesRequested === false;
275
+ let dropped = droppedFromCache;
275
276
  const loadComments = async () => {
276
277
  const comments = await client.pages(`repos/${options.repo}/issues/${number}/comments`);
277
278
  current.comments = comments
@@ -296,7 +297,9 @@ async function pullRequests(client, options, previous, phase, progress) {
296
297
  await loadReviews();
297
298
  }
298
299
  const discussionStatus = dropped
299
- ? "dropped"
300
+ ? droppedFromCache
301
+ ? "dropped cache"
302
+ : "dropped download"
300
303
  : discussionUnchanged
301
304
  ? "comments/reviews cache"
302
305
  : "download comments/reviews";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "co-maintainer",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Analyzes a GitHub repository and writes repository-specific contribution guidance.",
5
5
  "license": "MIT",
6
6
  "repository": {