@bridge-ds/core 0.5.1 → 0.7.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/bridge.config.schema.json +69 -0
- package/dist/branch-actions.d.ts +70 -0
- package/dist/combine-branches.d.ts +41 -0
- package/dist/{component-spec-cvrSvIZj.js → component-spec-1z2ih4E3.js} +466 -191
- package/dist/component-spec-1z2ih4E3.js.map +1 -0
- package/dist/component-spec.d.ts +238 -7
- package/dist/config.d.ts +4 -0
- package/dist/docs-proposal.d.ts +82 -0
- package/dist/explorations.d.ts +2 -0
- package/dist/fidelity-references.d.ts +78 -0
- package/dist/fidelity.d.ts +138 -0
- package/dist/github-client.d.ts +89 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1490 -307
- package/dist/index.js.map +1 -1
- package/dist/jira.d.ts +15 -0
- package/dist/library-update.d.ts +145 -0
- package/dist/node/component-specs.d.ts +59 -4
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +2020 -119
- package/dist/node/index.js.map +1 -1
- package/dist/node/spec-css.d.ts +11 -0
- package/dist/node/spec-motion.d.ts +66 -0
- package/dist/products.d.ts +56 -0
- package/dist/review-gate.d.ts +251 -0
- package/dist/rights.d.ts +2 -2
- package/dist/share-branch.d.ts +85 -0
- package/dist/try-in-product.d.ts +16 -0
- package/package.json +1 -1
- package/dist/component-spec-cvrSvIZj.js.map +0 -1
package/dist/github-client.d.ts
CHANGED
|
@@ -437,6 +437,7 @@ export declare class GitHubClient {
|
|
|
437
437
|
getPullRequest(n: number): Promise<PullRequest & PullRequestSummary & {
|
|
438
438
|
body: string;
|
|
439
439
|
mergeable: boolean | null;
|
|
440
|
+
requestedReviewers: string[];
|
|
440
441
|
}>;
|
|
441
442
|
listPullRequestFiles(n: number): Promise<PullRequestFile[]>;
|
|
442
443
|
updatePullRequest(n: number, patch: {
|
|
@@ -478,6 +479,94 @@ export declare class GitHubClient {
|
|
|
478
479
|
};
|
|
479
480
|
}): Promise<CheckRun>;
|
|
480
481
|
removeLabel(issueNumber: number, label: string): Promise<void>;
|
|
482
|
+
/** The account the token belongs to (GET /user). Needs a token. */
|
|
483
|
+
getViewer(): Promise<{
|
|
484
|
+
login: string;
|
|
485
|
+
}>;
|
|
486
|
+
/** The repository's merge settings and the viewer's permissions (unknown settings count as allowed). */
|
|
487
|
+
getMergeSettings(): Promise<{
|
|
488
|
+
allow_squash_merge?: boolean;
|
|
489
|
+
allow_merge_commit?: boolean;
|
|
490
|
+
allow_rebase_merge?: boolean;
|
|
491
|
+
permissions?: {
|
|
492
|
+
admin?: boolean;
|
|
493
|
+
maintain?: boolean;
|
|
494
|
+
push?: boolean;
|
|
495
|
+
};
|
|
496
|
+
}>;
|
|
497
|
+
/**
|
|
498
|
+
* Merges a pull request, only at `sha` (GitHub refuses when the branch moved meanwhile). The repository's branch
|
|
499
|
+
* rules still apply: GitHub refuses a merge they block, whatever Bridge says.
|
|
500
|
+
*/
|
|
501
|
+
mergePullRequest(n: number, input: {
|
|
502
|
+
method: 'squash' | 'merge' | 'rebase';
|
|
503
|
+
sha: string;
|
|
504
|
+
commitMessage?: string | undefined;
|
|
505
|
+
}): Promise<{
|
|
506
|
+
sha: string;
|
|
507
|
+
merged: boolean;
|
|
508
|
+
}>;
|
|
509
|
+
/** GitHub's "Update branch": merges the base into the pull request, only when its head is still `expectedHeadSha`. */
|
|
510
|
+
updatePullRequestBranch(n: number, expectedHeadSha: string): Promise<void>;
|
|
511
|
+
/** Posts a comment on an issue or pull request and returns its id and link. */
|
|
512
|
+
createIssueComment(n: number, body: string): Promise<{
|
|
513
|
+
id: number;
|
|
514
|
+
url: string;
|
|
515
|
+
}>;
|
|
516
|
+
/** Replaces the text of a comment. */
|
|
517
|
+
updateIssueComment(id: number, body: string): Promise<void>;
|
|
518
|
+
/** Submits a review on a given commit (the head the reviewer saw); the body may be empty for an approval. */
|
|
519
|
+
submitReview(n: number, input: {
|
|
520
|
+
event: 'COMMENT' | 'APPROVE' | 'REQUEST_CHANGES';
|
|
521
|
+
body?: string | undefined;
|
|
522
|
+
commitId?: string | undefined;
|
|
523
|
+
}): Promise<Review>;
|
|
524
|
+
/** Line comments of a pull request (review threads), oldest first. */
|
|
525
|
+
listReviewComments(n: number): Promise<{
|
|
526
|
+
id: number;
|
|
527
|
+
body: string;
|
|
528
|
+
author: string;
|
|
529
|
+
path: string;
|
|
530
|
+
line: number | null;
|
|
531
|
+
inReplyTo: number | null;
|
|
532
|
+
url: string;
|
|
533
|
+
createdAt: string;
|
|
534
|
+
}[]>;
|
|
535
|
+
/** Asks these people to review a pull request. */
|
|
536
|
+
requestReviewers(n: number, logins: string[]): Promise<void>;
|
|
537
|
+
/** Takes these people off the requested reviewers. */
|
|
538
|
+
removeRequestedReviewers(n: number, logins: string[]): Promise<void>;
|
|
539
|
+
/** Replies in the thread of a line comment. */
|
|
540
|
+
replyToReviewComment(n: number, commentId: number, body: string): Promise<{
|
|
541
|
+
id: number;
|
|
542
|
+
url: string;
|
|
543
|
+
}>;
|
|
544
|
+
/**
|
|
545
|
+
* What `head` adds on top of `base`, with what library sync needs: the shared start (merge base), the base
|
|
546
|
+
* commit and its tree, how far behind, and the files with their previous names.
|
|
547
|
+
*/
|
|
548
|
+
compareDetailed(base: string, head: string): Promise<{
|
|
549
|
+
behindBy: number;
|
|
550
|
+
aheadBy: number;
|
|
551
|
+
mergeBase: string | null;
|
|
552
|
+
baseSha: string | null;
|
|
553
|
+
baseTree: string | null;
|
|
554
|
+
files: {
|
|
555
|
+
filename: string;
|
|
556
|
+
status: string;
|
|
557
|
+
previous_filename?: string | undefined;
|
|
558
|
+
}[];
|
|
559
|
+
}>;
|
|
560
|
+
/** A tree on top of `baseTree` from entries with their own file mode (blob sha, inline content, or sha null to delete). */
|
|
561
|
+
createTreeEntries(baseTree: string, entries: ({
|
|
562
|
+
path: string;
|
|
563
|
+
mode: string;
|
|
564
|
+
sha: string | null;
|
|
565
|
+
} | {
|
|
566
|
+
path: string;
|
|
567
|
+
mode: string;
|
|
568
|
+
content: string;
|
|
569
|
+
})[]): Promise<string>;
|
|
481
570
|
}
|
|
482
571
|
export declare function friendlyMessage(status: number, detail: string, info?: GitHubErrorInfo): string;
|
|
483
572
|
export interface RepoFiles {
|
package/dist/index.d.ts
CHANGED
|
@@ -43,3 +43,14 @@ export * from './explorations';
|
|
|
43
43
|
export * from './explorations-github';
|
|
44
44
|
export * from './requests-github';
|
|
45
45
|
export * from './component-spec';
|
|
46
|
+
export * from './fidelity';
|
|
47
|
+
export * from './fidelity-references';
|
|
48
|
+
export * from './review-gate';
|
|
49
|
+
export * from './library-update';
|
|
50
|
+
export * from './branch-actions';
|
|
51
|
+
export * from './jira';
|
|
52
|
+
export * from './docs-proposal';
|
|
53
|
+
export * from './share-branch';
|
|
54
|
+
export * from './try-in-product';
|
|
55
|
+
export * from './combine-branches';
|
|
56
|
+
export * from './products';
|