agents-relay 1.0.174 → 1.0.175
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/reconciler.js +3 -1
- package/package.json +1 -1
package/dist/reconciler.js
CHANGED
|
@@ -109,8 +109,10 @@ export class Reconciler extends ReconcilerReviewBase {
|
|
|
109
109
|
const previousState = job.state;
|
|
110
110
|
const prState = await this.store.pullRequestState?.() ?? 'OPEN';
|
|
111
111
|
const headSha = prState === 'OPEN' ? await this.currentHeadSha(job) : null;
|
|
112
|
-
if (headSha)
|
|
112
|
+
if (headSha && job.headSha !== headSha) {
|
|
113
113
|
job.headSha = headSha;
|
|
114
|
+
await this.store.saveJob(job);
|
|
115
|
+
}
|
|
114
116
|
await this.invalidateStaleReview(job, headSha);
|
|
115
117
|
const now = (this.options.now ?? new Date()).getTime();
|
|
116
118
|
if (prState !== 'OPEN') {
|