Skip to content

chore(ci): include scripts/ in code-change path filter#119

Merged
Luis85 merged 1 commit into
developfrom
chore/ci-scripts-path-filter
Apr 26, 2026
Merged

chore(ci): include scripts/ in code-change path filter#119
Luis85 merged 1 commit into
developfrom
chore/ci-scripts-path-filter

Conversation

@Luis85
Copy link
Copy Markdown
Owner

@Luis85 Luis85 commented Apr 26, 2026

Summary

  • The changes job's path-filter regex omitted scripts/, so a PR that only modifies executable repo scripts (scripts/bump-actions.mjs, scripts/seed-learning-network.ts) was tagged code=false and skipped every gated job: lint, typecheck, docs, test-core, test-tfjs, build, demo-build. Script regressions could merge unvalidated.
  • Add scripts/ to the regex so script changes flip code=true and trigger the full gate.

Why now

Codex flagged this as a P2 (id 3143181601) on PR #114 (develop→demo promotion). Pre-existing develop CI bug — same pattern as the prior P2s already addressed by #116 / #117 / #118. PR #114 stays on hold until this lands; once it does, the demo promotion can re-sweep on a clean develop tip.

Test plan

  • Inspected scripts/ contents — two real code-touching files (bump-actions.mjs, seed-learning-network.ts); the gate had a real blind spot
  • Diff is a single regex addition; no functional code path changes
  • No changeset (CI-only chore — per CLAUDE.md "Docs / refactor / chore PRs can skip it")
  • CI itself will exercise the new path on this PR (the workflow file change flips code=true via the \.github/workflows/ clause that already existed; full gate runs)

Related

The `changes` job's path-filter regex omitted `scripts/`, so a PR
that only modifies executable repo scripts (`scripts/bump-actions.mjs`,
`scripts/seed-learning-network.ts`) was tagged `code=false` and
skipped every gated job: lint, typecheck, docs, test-core, test-tfjs,
build, demo-build. Script regressions could merge unvalidated.

Add `scripts/` to the regex so script changes flip `code=true` and
trigger the full gate. No reviewer-facing surface change.

Closes Codex P2 finding 3143181601 on PR #114.
@Luis85
Copy link
Copy Markdown
Owner Author

Luis85 commented Apr 26, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions
Copy link
Copy Markdown

size-limit report 📦

Path Size
dist/index.js (gzip) 37.87 KB (0%)
dist/integrations/excalibur/index.js (gzip) 1.4 KB (0%)
dist/cognition/adapters/mistreevous/index.js (gzip) 1.14 KB (0%)
dist/cognition/adapters/js-son/index.js (gzip) 1.36 KB (0%)
dist/cognition/adapters/tfjs/index.js (gzip) 8.74 KB (0%)

@Luis85 Luis85 merged commit b0b682e into develop Apr 26, 2026
22 checks passed
@Luis85 Luis85 deleted the chore/ci-scripts-path-filter branch April 26, 2026 08:20
Luis85 added a commit that referenced this pull request Apr 26, 2026
## Summary

Update `feedback_autonomous_merge_after_codex.md` to reflect two operational shifts already in practice:

- **Project switched to squash-merge** post-PR #119. Every PR from #133 onward lands as a squash commit (`<type>: <subject> (#NNN)`). Previous `gh pr merge <n> --merge --delete-branch` recipe returns `enablePullRequestAutoMerge` GraphQL error.
- **Post-squash topic branches need `-D`** for cleanup. The squash creates a NEW commit SHA, so the local topic branch is no longer an ancestor of develop and `git branch -d <topic>` fails.

Also documents the `--auto` flag for cases where `gh pr merge` is fired while required checks are still mid-run.

## Files changed

- `.claude/memory/feedback_autonomous_merge_after_codex.md` — `--merge` → `--squash`, `-d` → `-D`, plus the `--auto` note.

## Test plan

- [x] `npm run verify` green locally (format:check + lint + typecheck + 588 tests + build + typedoc)
- [x] No `src/**` changes — memory-doc only
- [x] No changeset (per `CLAUDE.md`: docs/refactor/chore PRs skip changesets)

## Notes for review

- This recipe was used end-to-end on PR #149 a few minutes before this PR — `--squash --delete-branch` with `--auto`-equivalent timing worked clean.
- Rule violation flagged: this is a second PR opened in the same Claude session as #149. Owner explicitly requested it after #149 landed; cited as override of the new one-PR-per-session rule for a trivial single-file memory doc update.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants