@dialecte/cli 0.9.0 → 0.11.0

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/lookups.d.ts CHANGED
@@ -107,10 +107,10 @@ declare function packagesText(indexes: readonly ApiJson[]): string;
107
107
  /** The names of the known host vendors: what the config key `host` is checked against (`config/` imports this, never a vendor). */
108
108
  declare const HOST_VENDOR_NAMES: readonly ["github"];
109
109
  /** The adapter methods a live probe may call: reads only (a probe never writes). */
110
- declare const HOST_READ_METHODS: readonly ["readPullRequest", "readChecks", "readQueued", "probeStacks"];
110
+ declare const HOST_READ_METHODS: readonly ["readChangeRequest", "readChecks", "readQueued", "probeStacks"];
111
111
 
112
112
  /** A pull request on the host, as a landing reads it. */
113
- type PullRequest = {
113
+ type ChangeRequest = {
114
114
  number: number;
115
115
  url: string;
116
116
  title: string;
@@ -137,7 +137,7 @@ type StackSupport = {
137
137
  /** How the checks on a pull request's head stand: all passed, one failed, one still running, or none at all. */
138
138
  type ChecksState = 'green' | 'failing' | 'pending' | 'none';
139
139
  /** The checks on a pull request's head: their state and the names of the failing and the pending ones. */
140
- type PullRequestChecks = {
140
+ type ChangeRequestChecks = {
141
141
  /** The commit the checks ran on (the pull request's head). */
142
142
  head: string;
143
143
  state: ChecksState;
@@ -163,33 +163,33 @@ type HostRefusal = {
163
163
  */
164
164
  type HostAdapter = {
165
165
  /** The pull request `ref` names (a number, or a branch: its newest); undefined when there is none. */
166
- readPullRequest(params: {
166
+ readChangeRequest(params: {
167
167
  root: string;
168
168
  ref: string;
169
- }): PullRequest | undefined | HostRefusal;
169
+ }): ChangeRequest | undefined | HostRefusal;
170
170
  /** A new pull request of `branch` into `base`. */
171
- openPullRequest(params: {
171
+ openChangeRequest(params: {
172
172
  root: string;
173
173
  branch: string;
174
174
  base: string;
175
175
  title: string;
176
176
  body: string;
177
177
  draft: boolean;
178
- }): PullRequest | HostRefusal;
178
+ }): ChangeRequest | HostRefusal;
179
179
  /** The pull request's title and body replaced by `title` and `body`. */
180
- editPullRequest(params: {
180
+ editChangeRequest(params: {
181
181
  root: string;
182
182
  number: number;
183
183
  title: string;
184
184
  body: string;
185
185
  }): HostRefusal | undefined;
186
186
  /** The pull request closed: taken out of the merge queue, never merged. */
187
- closePullRequest(params: {
187
+ closeChangeRequest(params: {
188
188
  root: string;
189
189
  number: number;
190
190
  }): HostRefusal | undefined;
191
191
  /** The pull request queued: merged by the host once its checks pass (a draft made ready first). */
192
- queuePullRequest(params: {
192
+ queueChangeRequest(params: {
193
193
  root: string;
194
194
  number: number;
195
195
  draft: boolean;
@@ -198,7 +198,7 @@ type HostAdapter = {
198
198
  * The pull request taken back out of the queue: auto-merge turned off when `queued`, made a draft when not `draft`
199
199
  * (an approval is for one head); nothing asked when it is a draft not queued.
200
200
  */
201
- draftPullRequest(params: {
201
+ draftChangeRequest(params: {
202
202
  root: string;
203
203
  number: number;
204
204
  queued: boolean;
@@ -218,7 +218,7 @@ type HostAdapter = {
218
218
  readChecks(params: {
219
219
  root: string;
220
220
  number: number;
221
- }): PullRequestChecks | HostRefusal;
221
+ }): ChangeRequestChecks | HostRefusal;
222
222
  /** The line comments of the pull request's reviews, oldest first. */
223
223
  readReviewComments(params: {
224
224
  root: string;
@@ -249,7 +249,7 @@ type HostAdapter = {
249
249
  draft: boolean;
250
250
  }): HostRefusal | undefined;
251
251
  /** The pull request's base branch changed to `base`. */
252
- retargetPullRequest(params: {
252
+ retargetChangeRequest(params: {
253
253
  root: string;
254
254
  number: number;
255
255
  base: string;
@@ -331,7 +331,7 @@ type HostErasedProbes = {
331
331
  host: HostReadAdapter;
332
332
  run: HostErasedToolRun;
333
333
  subject: string;
334
- pullRequest?: number;
334
+ changeRequest?: number;
335
335
  }): HostLine;
336
336
  };
337
337
  /** A vendor with its call table erased, and what its probes run with: the element of the one list of vendors. */
@@ -430,7 +430,7 @@ type HostProbe<Calls extends HostCallTable = HostCallTable> = (params: {
430
430
  host: HostReadAdapter;
431
431
  run: HostToolRun<Calls>;
432
432
  subject: string;
433
- pullRequest?: number;
433
+ changeRequest?: number;
434
434
  }) => HostLine;
435
435
  /**
436
436
  * The probe of the read that finds the pull request the other probes read: its line (its subject `subject`, the
@@ -443,7 +443,7 @@ type HostSubjectProbe<Calls extends HostCallTable = HostCallTable> = (params: {
443
443
  subject: string;
444
444
  }) => {
445
445
  line: HostLine;
446
- pullRequest?: number;
446
+ changeRequest?: number;
447
447
  };
448
448
 
449
449
  /**