@volter/supercode-orchestrator 0.4.155 → 0.4.156
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/board/ci.mjs +4 -2
- package/package.json +1 -1
package/board/ci.mjs
CHANGED
|
@@ -181,8 +181,8 @@ export function openReviewPullRequests(board, id) {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
/** An arc that changed no code (a disposition, such as closing a PR with its reason): its work branch holds no commit
|
|
184
|
-
* beyond its repository's default branch, locally or on origin,
|
|
185
|
-
* other branch. Answers what its review reads instead of a diff, or null when the arc carries (or may carry) code. */
|
|
184
|
+
* beyond its repository's default branch, locally or on origin, its checkout holds no uncommitted work, no PR was
|
|
185
|
+
* ever opened from it, and it registered no other branch. Answers what its review reads instead of a diff, or null when the arc carries (or may carry) code. */
|
|
186
186
|
export function noCodeChange(board, id) {
|
|
187
187
|
const own = repositoryWorkspace(board, id);
|
|
188
188
|
if (!own) return null;
|
|
@@ -193,6 +193,8 @@ export function noCodeChange(board, id) {
|
|
|
193
193
|
const base = run('git', ['symbolic-ref', '--quiet', '--short', 'refs/remotes/origin/HEAD'], own);
|
|
194
194
|
if (!repository || !branch || !base || branch === base.replace(/^origin\//, '')) return null;
|
|
195
195
|
if (registeredBranches(board, id).some((r) => r.repository !== repository || r.branch !== branch)) return null;
|
|
196
|
+
// Uncommitted work in the checkout is code not yet committed: a dirty worktree is never no-code.
|
|
197
|
+
if (run('git', ['status', '--porcelain', '--untracked-files=normal'], own)) return null;
|
|
196
198
|
// An unknown local or remote commit is code this checkout cannot see: run() throws and the arc waits.
|
|
197
199
|
if (run('git', ['for-each-ref', '--format=%(refname)', `refs/heads/${branch}`], own)) run('git', ['merge-base', '--is-ancestor', `refs/heads/${branch}`, base], own);
|
|
198
200
|
const remote = run('git', ['ls-remote', 'origin', `refs/heads/${branch}`], own).split(/\s+/)[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-orchestrator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.156",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The orchestrator runtime over the Volter Harness ontology: one typed operational model whose folder is its serialization, read and written through the harness orchestration doors (docs/ORCHESTRATOR-IR.md)",
|
|
6
6
|
"exports": {
|