@chisquare-tech/origine-ngx-apps-code 0.7.0 → 0.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chisquare-tech/origine-ngx-apps-code",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Origine's Code module screens: repositories, files, commits, branches, pull requests and review, repository settings.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,6 +54,8 @@ interface Repo {
54
54
  empty: boolean;
55
55
  capabilities: string[];
56
56
  readOnly?: boolean;
57
+ /** Pull requests can be armed to merge once the gate passes (DEV-25). */
58
+ allowAutoMerge?: boolean;
57
59
  /** The caller's collaborator permission on this repository (read, write or maintain), if any. */
58
60
  collaborator?: string;
59
61
  createdAt?: string;
@@ -303,6 +305,9 @@ interface CheckStatus {
303
305
  description?: string;
304
306
  }
305
307
  interface Pull {
308
+ /** Armed to merge with autoMergeMethod once the gate passes, by autoMergeBy (DEV-25). */
309
+ autoMergeBy?: string;
310
+ autoMergeMethod?: string;
306
311
  number: number;
307
312
  title: string;
308
313
  body: string;
@@ -416,6 +421,7 @@ declare class CodeApi {
416
421
  defaultBranch: string;
417
422
  mergeMethods: string[];
418
423
  deleteBranchOnMerge: boolean;
424
+ allowAutoMerge: boolean;
419
425
  }>): Observable<Repo>;
420
426
  remove(project: string, name: string): Observable<unknown>;
421
427
  setArchived(project: string, name: string, on: boolean): Observable<Repo>;
@@ -505,6 +511,8 @@ declare class CodeApi {
505
511
  }): Observable<Pull>;
506
512
  conversation(project: string, name: string, n: number): Observable<Timeline>;
507
513
  comment(project: string, name: string, n: number, c: NewComment): Observable<PRComment>;
514
+ /** Arms (method) or disarms (null) auto-merge on a pull request (DEV-25). */
515
+ autoMerge(project: string, name: string, n: number, method: string | null): Observable<Pull>;
508
516
  /** Commits suggested changes of line comments onto the pull request's branch (DEV-20). */
509
517
  applySuggestions(project: string, name: string, n: number, comments: string[], message?: string): Observable<CommitResult>;
510
518
  /** Discards one of the caller's pending review comments. */
@@ -1042,6 +1050,8 @@ declare class PullPage extends RepoPage {
1042
1050
  protected addComment(): void;
1043
1051
  protected lineComment(c: LineComment): void;
1044
1052
  protected readonly batch: _angular_core.WritableSignal<string[]>;
1053
+ /** Arms auto-merge with a method, or disarms it (null). */
1054
+ protected setAutoMerge(method: string | null): void;
1045
1055
  protected toggleBatch(id: string): void;
1046
1056
  /** Commits one suggestion, or the batch, onto the pull request's branch. */
1047
1057
  protected applySuggestions(ids: string[]): void;
@@ -1095,6 +1105,7 @@ declare class RepoSettingsPage extends RepoPage {
1095
1105
  defaultBranch: string;
1096
1106
  mergeMethods: string[];
1097
1107
  deleteBranchOnMerge: boolean;
1108
+ allowAutoMerge: boolean;
1098
1109
  };
1099
1110
  protected readonly methods: {
1100
1111
  id: string;