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 +1 -1
- package/dist/src/github/collect.js +5 -2
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -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
|
|
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
|
-
?
|
|
300
|
+
? droppedFromCache
|
|
301
|
+
? "dropped cache"
|
|
302
|
+
: "dropped download"
|
|
300
303
|
: discussionUnchanged
|
|
301
304
|
? "comments/reviews cache"
|
|
302
305
|
: "download comments/reviews";
|