@usine/github 0.3.1-next.297.g24dc884 → 0.3.1-next.298.g8e49188
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/README.md +1 -1
- package/dist/item-history.d.ts +11 -9
- package/dist/item-history.d.ts.map +1 -1
- package/dist/item-history.js +16 -13
- package/dist/item-history.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ The REST cursor overlaps its watermark by five seconds. Repeated items are expec
|
|
|
78
78
|
|
|
79
79
|
`GitHubItemWriter.updateLabels(repository, item, mutation)` adds the destination lane's labels and removes only labels that lanes own. It never replaces an item's whole label set or deletes label definitions, so unrelated and concurrent labels survive stale or truncated projections.
|
|
80
80
|
|
|
81
|
-
`GitHubItemHistory.appChanges(repository, item, since)` (`/item-history`) reads an issue or pull request timeline through GraphQL from `since`, and returns the
|
|
81
|
+
`GitHubItemHistory.appChanges(repository, item, since, actor)` (`/item-history`) reads an issue or pull request timeline through GraphQL from `since`, and returns the supplied bot's changes, oldest first: `LabelAdded`, `LabelRemoved`, `Commented`, and `Reviewed` (a submitted review with its state). Each change has GitHub's time; a label has its current name, color, and description, and comments and reviews have their URL. Other users and bots are left out. Pass the worker's `BotLogin`, including `[bot]`; the reader matches GraphQL's `Bot` actor after removing that REST suffix. The caller selects the writer, so exe.dev attempts can use their integration bot while local, SSH, provisioned, and Cloudflare attempts use the instance App. It reads up to ten pages of 100 items and fails with `InvalidGitHubResponseError` rather than return part of a longer timeline. An item the repo no longer has fails with `GitHubItemNotFoundError`.
|
|
82
82
|
|
|
83
83
|
`GitHubLabelWriter.create(repository, label)` creates a label through `POST /repos/{owner}/{repo}/labels` with the installation-wide token. Color and description are optional. The orchestrator owns reconciliation, so this service only creates.
|
|
84
84
|
|
package/dist/item-history.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BotLogin } from "@usine/core/worker";
|
|
1
2
|
import { ItemNumber } from "@usine/core/item";
|
|
2
3
|
import { RepositoryName } from "@usine/core/repository";
|
|
3
4
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
@@ -9,21 +10,21 @@ declare const LabelAdded_base: Schema.Class<LabelAdded, Schema.TaggedStruct<"Lab
|
|
|
9
10
|
readonly at: Schema.DateTimeUtc;
|
|
10
11
|
readonly label: typeof RepositoryLabel;
|
|
11
12
|
}>, {}>;
|
|
12
|
-
/** A label the
|
|
13
|
+
/** A label the bot added to the item; `label` is its current GitHub definition. */
|
|
13
14
|
export declare class LabelAdded extends LabelAdded_base {
|
|
14
15
|
}
|
|
15
16
|
declare const LabelRemoved_base: Schema.Class<LabelRemoved, Schema.TaggedStruct<"LabelRemoved", {
|
|
16
17
|
readonly at: Schema.DateTimeUtc;
|
|
17
18
|
readonly label: typeof RepositoryLabel;
|
|
18
19
|
}>, {}>;
|
|
19
|
-
/** A label the
|
|
20
|
+
/** A label the bot removed from the item; `label` is its current GitHub definition. */
|
|
20
21
|
export declare class LabelRemoved extends LabelRemoved_base {
|
|
21
22
|
}
|
|
22
23
|
declare const Commented_base: Schema.Class<Commented, Schema.TaggedStruct<"Commented", {
|
|
23
24
|
readonly at: Schema.DateTimeUtc;
|
|
24
25
|
readonly url: Schema.NonEmptyString;
|
|
25
26
|
}>, {}>;
|
|
26
|
-
/** A comment the
|
|
27
|
+
/** A comment the bot posted on the item; `url` links to it. */
|
|
27
28
|
export declare class Commented extends Commented_base {
|
|
28
29
|
}
|
|
29
30
|
/** The state of a submitted pull request review. */
|
|
@@ -34,22 +35,23 @@ declare const Reviewed_base: Schema.Class<Reviewed, Schema.TaggedStruct<"Reviewe
|
|
|
34
35
|
readonly url: Schema.NonEmptyString;
|
|
35
36
|
readonly state: Schema.Literals<readonly ["APPROVED", "CHANGES_REQUESTED", "COMMENTED", "DISMISSED"]>;
|
|
36
37
|
}>, {}>;
|
|
37
|
-
/** A review the
|
|
38
|
+
/** A review the bot submitted on the pull request; `url` links to it. */
|
|
38
39
|
export declare class Reviewed extends Reviewed_base {
|
|
39
40
|
}
|
|
40
|
-
/** A change the
|
|
41
|
+
/** A change the bot made on an issue or pull request, with GitHub's timestamp. */
|
|
41
42
|
export declare const ItemChange: Schema.Union<readonly [typeof LabelAdded, typeof LabelRemoved, typeof Commented, typeof Reviewed]>;
|
|
42
43
|
export type ItemChange = typeof ItemChange.Type;
|
|
43
44
|
declare const GitHubItemHistory_base: Context.ServiceClass<GitHubItemHistory, "@usine/github/GitHubItemHistory", {
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
+
* Matches `actor` against GraphQL's bot login, which omits the REST `[bot]` suffix.
|
|
47
|
+
* Returns the labels the bot added or removed, its comments, and its submitted reviews on one
|
|
46
48
|
* issue or pull request at or after `since`, oldest first. Labels have their current name,
|
|
47
49
|
* color, and description. Fails with `GitHubItemNotFoundError` if the repository responds but
|
|
48
|
-
* has no such
|
|
50
|
+
* has no such item.
|
|
49
51
|
*/
|
|
50
|
-
readonly appChanges: (repository: RepositoryName, item: ItemNumber, since: DateTime.Utc) => Effect.Effect<ReadonlyArray<ItemChange>, GitHubAppError | GitHubItemNotFoundError>;
|
|
52
|
+
readonly appChanges: (repository: RepositoryName, item: ItemNumber, since: DateTime.Utc, actor: BotLogin) => Effect.Effect<ReadonlyArray<ItemChange>, GitHubAppError | GitHubItemNotFoundError>;
|
|
51
53
|
}>;
|
|
52
|
-
/**
|
|
54
|
+
/** A bot's changes on an item, read from the Item's GitHub timeline. */
|
|
53
55
|
export declare class GitHubItemHistory extends GitHubItemHistory_base {
|
|
54
56
|
static readonly layer: Layer.Layer<GitHubItemHistory, never, GitHubApp | HttpClient.HttpClient>;
|
|
55
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-history.d.ts","sourceRoot":"","sources":["../src/item-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAuB,M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,MAAM,UAAU,oGAAgE,CAAC;AACxF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;;IAsH5C;;;;;;OAMG;yBACkB,CACnB,UAAU,EAAE,cAAc,EAC1B,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,QAAQ,CAAC,GAAG,EACnB,KAAK,EAAE,QAAQ,KACZ,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,cAAc,GAAG,uBAAuB,CAAC;;AAhB3F,wEAAwE;AACxE,qBAAa,iBAAkB,SAAQ,sBAiBD;IACpC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC,UAAU,CAAC,CAmF3F;CACL;AAED,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/item-history.js
CHANGED
|
@@ -9,13 +9,13 @@ import { invalidResponse } from "./http.js";
|
|
|
9
9
|
import { RepositoryLabel, RepositoryLabelColor, RepositoryLabelName } from "./polling/labels.js";
|
|
10
10
|
/** The maximum timeline pages per walk; more changes since `since` fail instead of returning partial results. */
|
|
11
11
|
const MAX_TIMELINE_PAGES = 10;
|
|
12
|
-
/** A label the
|
|
12
|
+
/** A label the bot added to the item; `label` is its current GitHub definition. */
|
|
13
13
|
export class LabelAdded extends Schema.TaggedClass("@usine/github/LabelAdded")("LabelAdded", { at: Schema.DateTimeUtc, label: RepositoryLabel }) {
|
|
14
14
|
}
|
|
15
|
-
/** A label the
|
|
15
|
+
/** A label the bot removed from the item; `label` is its current GitHub definition. */
|
|
16
16
|
export class LabelRemoved extends Schema.TaggedClass("@usine/github/LabelRemoved")("LabelRemoved", { at: Schema.DateTimeUtc, label: RepositoryLabel }) {
|
|
17
17
|
}
|
|
18
|
-
/** A comment the
|
|
18
|
+
/** A comment the bot posted on the item; `url` links to it. */
|
|
19
19
|
export class Commented extends Schema.TaggedClass("@usine/github/Commented")("Commented", { at: Schema.DateTimeUtc, url: Schema.NonEmptyString }) {
|
|
20
20
|
}
|
|
21
21
|
/** The state of a submitted pull request review. */
|
|
@@ -25,14 +25,14 @@ export const ReviewState = Schema.Literals([
|
|
|
25
25
|
"COMMENTED",
|
|
26
26
|
"DISMISSED",
|
|
27
27
|
]);
|
|
28
|
-
/** A review the
|
|
28
|
+
/** A review the bot submitted on the pull request; `url` links to it. */
|
|
29
29
|
export class Reviewed extends Schema.TaggedClass("@usine/github/Reviewed")("Reviewed", {
|
|
30
30
|
at: Schema.DateTimeUtc,
|
|
31
31
|
url: Schema.NonEmptyString,
|
|
32
32
|
state: ReviewState,
|
|
33
33
|
}) {
|
|
34
34
|
}
|
|
35
|
-
/** A change the
|
|
35
|
+
/** A change the bot made on an issue or pull request, with GitHub's timestamp. */
|
|
36
36
|
export const ItemChange = Schema.Union([LabelAdded, LabelRemoved, Commented, Reviewed]);
|
|
37
37
|
const LABEL_AND_COMMENT_NODES = `
|
|
38
38
|
__typename
|
|
@@ -105,8 +105,10 @@ const TimelineData = Schema.Struct({
|
|
|
105
105
|
})),
|
|
106
106
|
})),
|
|
107
107
|
});
|
|
108
|
-
const appChange = (
|
|
109
|
-
const byApp = (actor) => actor !== null &&
|
|
108
|
+
const appChange = (botLogin, node) => {
|
|
109
|
+
const byApp = (actor) => actor !== null &&
|
|
110
|
+
actor.__typename === "Bot" &&
|
|
111
|
+
actor.login === botLogin.slice(0, -"[bot]".length);
|
|
110
112
|
const label = (from) => new RepositoryLabel({
|
|
111
113
|
name: from.name,
|
|
112
114
|
color: from.color,
|
|
@@ -132,12 +134,13 @@ const appChange = (slug, node) => {
|
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
136
|
};
|
|
135
|
-
/**
|
|
137
|
+
/** A bot's changes on an item, read from the Item's GitHub timeline. */
|
|
136
138
|
export class GitHubItemHistory extends Context.Service()("@usine/github/GitHubItemHistory") {
|
|
137
139
|
static layer = Layer.effect(GitHubItemHistory, Effect.gen(function* () {
|
|
138
140
|
const app = yield* GitHubApp;
|
|
139
141
|
const http = yield* HttpClient.HttpClient;
|
|
140
142
|
const timelinePage = Effect.fn("GitHubItemHistory.timelinePage")(function* (repository, item, since, after) {
|
|
143
|
+
yield* Effect.annotateCurrentSpan({ repository, item });
|
|
141
144
|
const token = yield* app.installationToken();
|
|
142
145
|
const { name, owner } = splitRepositoryName(repository);
|
|
143
146
|
const data = yield* queryGraphql(http, token, "fetch-item-timeline", ITEM_TIMELINE_QUERY, { owner, name, number: item, since, after }, TimelineData);
|
|
@@ -157,9 +160,8 @@ export class GitHubItemHistory extends Context.Service()("@usine/github/GitHubIt
|
|
|
157
160
|
return yield* invalidResponse("fetch-item-timeline", "GitHub returned hasNextPage for the timeline without an endCursor");
|
|
158
161
|
return { nodes, next: Option.some(pageInfo.endCursor) };
|
|
159
162
|
});
|
|
160
|
-
const appChanges = Effect.fn("GitHubItemHistory.appChanges")(function* (repository, item, since) {
|
|
161
|
-
yield* Effect.annotateCurrentSpan({ repository, item });
|
|
162
|
-
const { appSlug } = yield* app.installation();
|
|
163
|
+
const appChanges = Effect.fn("GitHubItemHistory.appChanges")(function* (repository, item, since, actor) {
|
|
164
|
+
yield* Effect.annotateCurrentSpan({ repository, item, actor });
|
|
163
165
|
const sinceIso = DateTime.formatIso(since);
|
|
164
166
|
const nodes = [];
|
|
165
167
|
let next = Option.none();
|
|
@@ -172,10 +174,11 @@ export class GitHubItemHistory extends Context.Service()("@usine/github/GitHubIt
|
|
|
172
174
|
} while (Option.isSome(next) && pages < MAX_TIMELINE_PAGES);
|
|
173
175
|
if (Option.isSome(next))
|
|
174
176
|
return yield* invalidResponse("fetch-item-timeline", `the timeline of ${repository}#${item} since ${sinceIso} has more than ${MAX_TIMELINE_PAGES} pages`);
|
|
175
|
-
const changes = nodes.flatMap((node) => (node === null ? [] : appChange(
|
|
176
|
-
yield* Effect.logDebug("Read the
|
|
177
|
+
const changes = nodes.flatMap((node) => (node === null ? [] : appChange(actor, node)));
|
|
178
|
+
yield* Effect.logDebug("Read the bot's changes from an Item timeline", {
|
|
177
179
|
repository,
|
|
178
180
|
item,
|
|
181
|
+
actor,
|
|
179
182
|
since: sinceIso,
|
|
180
183
|
pages,
|
|
181
184
|
timelineItems: nodes.length,
|
package/dist/item-history.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-history.js","sourceRoot":"","sources":["../src/item-history.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item-history.js","sourceRoot":"","sources":["../src/item-history.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAuB,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAEjG,iHAAiH;AACjH,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAE9B,mFAAmF;AACnF,MAAM,OAAO,UAAW,SAAQ,MAAM,CAAC,WAAW,CAAa,0BAA0B,CAAC,CACxF,YAAY,EACZ,EAAE,EAAE,EAAE,MAAM,CAAC,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE,CACnD;CAAG;AAEJ,uFAAuF;AACvF,MAAM,OAAO,YAAa,SAAQ,MAAM,CAAC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AI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;YACvF,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,8CAA8C,EAAE;gBACrE,UAAU;gBACV,IAAI;gBACJ,KAAK;gBACL,KAAK,EAAE,QAAQ;gBACf,KAAK;gBACL,aAAa,EAAE,KAAK,CAAC,MAAM;gBAC3B,UAAU,EAAE,OAAO,CAAC,MAAM;aAC3B,CAAC,CAAC;YACH,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;QAEH,OAAO,EAAE,UAAU,EAAE,CAAC;IACxB,CAAC,CAAC,CACH,CAAC;CACL;AAED,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usine/github",
|
|
3
|
-
"version": "0.3.1-next.
|
|
3
|
+
"version": "0.3.1-next.298.g8e49188",
|
|
4
4
|
"description": "GitHub App authentication, installation discovery, project coverage, and scoped token minting for usine.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@usine/core": "0.5.1-next.
|
|
47
|
+
"@usine/core": "0.5.1-next.298.g8e49188"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@effect/platform-node": "4.0.6",
|