@kud/gh 0.3.0 → 0.4.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.
- package/dist/inbox.d.ts.map +1 -1
- package/dist/inbox.js +12 -4
- package/dist/inbox.js.map +1 -1
- package/package.json +1 -1
package/dist/inbox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../src/inbox.ts"],"names":[],"mappings":"AAQA,2CAA2C;AAC3C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8DAA8D;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;
|
|
1
|
+
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../src/inbox.ts"],"names":[],"mappings":"AAQA,2CAA2C;AAC3C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8DAA8D;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAmDD;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAI,4BAG7B,iBAAsB,WAqFxB,CAAA"}
|
package/dist/inbox.js
CHANGED
|
@@ -20,16 +20,23 @@ const PR_HEALTH = `
|
|
|
20
20
|
// carries its latest author and timestamp: the conversation, the review bodies,
|
|
21
21
|
// and each thread's last reply. The last commit rides along so a consumer can
|
|
22
22
|
// say whether the author has pushed since being sent back.
|
|
23
|
+
//
|
|
24
|
+
// `__typename` distinguishes a Bot from a User, which a login cannot: GraphQL
|
|
25
|
+
// reports app authors bare (`greptile-apps`), without the `[bot]` suffix REST
|
|
26
|
+
// adds, so there is nothing in the name to match on. A consumer needs it to
|
|
27
|
+
// decide whether a push answers what was said — it does when a machine said it,
|
|
28
|
+
// and does not when a person did. Note it catches GitHub Apps only; a machine
|
|
29
|
+
// ACCOUNT like `raycastbot` is a User and reads as human here.
|
|
23
30
|
const PR_CONVERSATION = `
|
|
24
|
-
comments(last: 1) { totalCount nodes { author { login } createdAt } }
|
|
25
|
-
reviews(last: 1) { nodes { author { login } state submittedAt } }
|
|
31
|
+
comments(last: 1) { totalCount nodes { author { __typename login } createdAt } }
|
|
32
|
+
reviews(last: 1) { nodes { author { __typename login } state submittedAt } }
|
|
26
33
|
reviewThreads(first: 50) { nodes {
|
|
27
34
|
isResolved
|
|
28
|
-
comments(last: 1) { totalCount nodes { author { login } createdAt } }
|
|
35
|
+
comments(last: 1) { totalCount nodes { author { __typename login } createdAt } }
|
|
29
36
|
} }
|
|
30
37
|
commits(last: 1) { nodes { commit { committedDate } } }`;
|
|
31
38
|
const ISSUE_CONVERSATION = `
|
|
32
|
-
comments(last: 1) { totalCount nodes { author { login } createdAt } }`;
|
|
39
|
+
comments(last: 1) { totalCount nodes { author { __typename login } createdAt } }`;
|
|
33
40
|
// Fetched so a consumer can tell a `plan` issue from any other — which decides
|
|
34
41
|
// what a delegated session gets handed. Nothing here renders labels.
|
|
35
42
|
const ISSUE_LABELS = `
|
|
@@ -61,6 +68,7 @@ export const buildInboxQuery = ({ repo, doneWithinDays = 14, } = {}) => {
|
|
|
61
68
|
nodes { __typename ... on PullRequest {
|
|
62
69
|
number title createdAt url headRefName
|
|
63
70
|
repository { nameWithOwner }
|
|
71
|
+
author { login }
|
|
64
72
|
${PR_HEALTH}
|
|
65
73
|
${PR_CONVERSATION}
|
|
66
74
|
}}
|
package/dist/inbox.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.js","sourceRoot":"","sources":["../src/inbox.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,6EAA6E;AAC7E,qCAAqC;AACrC,EAAE;AACF,6EAA6E;AAC7E,+EAA+E;AAC/E,uDAAuD;AAUvD,2EAA2E;AAC3E,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;A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