@leitwerk-dev/forgejo-repo-change 0.2.1 → 0.3.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/README.md CHANGED
@@ -48,11 +48,9 @@ write receipts. External writes are durable and safe to retry.
48
48
 
49
49
  Delivery waits for Forgejo feedback and terminal events and Woodpecker results.
50
50
  Feedback settles for two minutes before revision in a fresh turn; polling defaults
51
- to 30 seconds. Only pipeline failures matching the current head trigger repair.
52
- Push pipelines must also match the work branch; pull-request pipelines may report
53
- the target branch. After three automatic CI cycles an operator must retry, resume
54
- waiting, or abort. The budget is cumulative: publication, operator retry, and
55
- resume waiting do not reset it. Success keeps delivery waiting for the PR outcome. Conflict evidence
51
+ to 30 seconds. Only pipeline failures matching the current branch and head trigger
52
+ repair. After three automatic CI cycles an operator must retry, resume waiting,
53
+ or abort. Success keeps delivery waiting for the PR outcome. Conflict evidence
56
54
  permits one automatic repair per repository, PR, head, and base; publication uses
57
55
  the original-head lease after completing and verifying the rebase.
58
56
 
@@ -62,18 +60,6 @@ leaves its source issue open after removing the trigger and commenting. Closing
62
60
  the source issue or removing its trigger aborts waiting delivery directly.
63
61
  UI-origin deliveries never require source issue access.
64
62
 
65
- Feedback that needs no change receives a reply without a new commit. Feedback
66
- that cannot be repaired waits for operator action with its evidence retained.
67
- Repair publication updates the existing PR. Source cancellation leaves it open.
68
-
69
- Restart resumes delivery from retained state. Consumed feedback and completed
70
- external writes are not repeated. A merge that occurs while the server is
71
- offline is reconciled when delivery resumes.
72
-
73
- At operator action, **Retry repair** retains the pending evidence. **Resume waiting**
74
- dismisses the pending feedback and adjustment, retaining accepted feedback cursors
75
- and remote delivery state while waiting for new evidence.
76
-
77
63
  ## Composition and compatibility
78
64
 
79
65
  The default extension and `forgejoRepoChangeProcess` require Docker at runtime.
@@ -93,17 +79,18 @@ Stored process IDs, turn IDs, state under `extensionState.forgejoRepoChange`,
93
79
  subscriptions, project metadata, and external-write keys remain compatible with
94
80
  existing deliveries. Legacy issue parameters without `origin` remain readable.
95
81
  Forgejo and Woodpecker retain their documented persisted protocol identifiers.
96
- The separate `remote-repo-change` extension continues direct base-branch delivery.
82
+ This process delivers through a Forgejo pull request; direct base-branch delivery is not provided.
83
+
97
84
  At operator action, **Retry repair** retains the pending evidence. **Resume waiting**
98
85
  dismisses the pending feedback and adjustment, retaining accepted feedback cursors
99
86
  and remote delivery state while waiting for new evidence.
100
87
 
101
88
  ## Integration tests
102
89
 
103
- The composed workflow tests copy a pristine Git seed into an independent repository
104
- per scenario and use in-memory SQLite. They retain real Git, HTTP actions and worker
90
+ The composed workflow tests copy a pristine Git seed into independent repositories
91
+ and own their storage per scenario. They retain real Git, HTTP actions and worker
105
92
  IPC without repeating repository initialization. Failures report process and turn
106
- state before cleanup. File-backed persistence is covered separately below.
93
+ state before cleanup.
107
94
 
108
95
  ## Restart verification
109
96
 
package/dist/index.d.ts CHANGED
@@ -20,7 +20,19 @@ export declare function createForgejoRepoChange(options: {
20
20
  /** @internal */
21
21
  resolveGitIdentity: (profile: string) => Promise<import("@leitwerk-dev/forgejo").ForgejoGitIdentity>;
22
22
  /** @internal */
23
- launcher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<import("./params.js").ForgejoRepoChangeParams>;
23
+ launcher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<import("./params.js").ForgejoRepoChangeParams> & {
24
+ /** @internal */
25
+ resolveIssueLaunchConfig(event: {
26
+ /** @internal */
27
+ profile: string;
28
+ /** @internal */
29
+ repository: import("@leitwerk-dev/forgejo").ForgejoRepository;
30
+ /** @internal */
31
+ issue: Pick<import("@leitwerk-dev/forgejo").ForgejoIssue, "number" | "title" | "body" | "html_url">;
32
+ /** @internal */
33
+ labels: import("@leitwerk-dev/process-sdk").RepositoryIssueWatcherConfig["labels"];
34
+ }): Promise<import("@leitwerk-dev/process-sdk").ProcessLaunchConfig<import("./params.js").ForgejoRepoChangeParams>>;
35
+ };
24
36
  };
25
37
  };
26
38
  export type { ForgejoRepoChangeParams } from "./params.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIzE,OAAO,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAevF,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAChD,cAAc;IACd,MAAM,EAAE,OAAO,CAAC;CAChB;IAyBC,cAAc;;IAEd,cAAc;;IAEd,gBAAgB;;;;;;;;;;;;;EAGjB;AAED,YAAY,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,gBAAgB;AAChB,QAAA,MAAmB,gBAAgB,yBAA8C,CAAC;AAClF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIzE,OAAO,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAevF,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAChD,cAAc;IACd,MAAM,EAAE,OAAO,CAAC;CAChB;IAyBC,cAAc;;IAEd,cAAc;;IAEd,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;EAGjB;AAED,YAAY,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,gBAAgB;AAChB,QAAA,MAAmB,gBAAgB,yBAA8C,CAAC;AAClF,eAAe,gBAAgB,CAAC"}