4 Commits

Author SHA1 Message Date
peptiderepo
b3bf6451a8 ci: fix peptide-e2e org ref + deploy.yml permissions for reusable workflow
1. Update stale peptiderepo/peptide-e2e ref to peptide-repo/peptide-e2e.
   Reusable workflow uses: refs do not follow GitHub transfer redirects.

2. Fix permissions: contents: read → write so nested reusable ci.yml
   (requires write for phpcbf auto-commit) can run without startup_failure.

Agent-Session: fix-e2e-ref-20260617
2026-06-17 11:34:08 +07:00
peptiderepo
9bb74cf0d3 ci: update peptide-e2e reusable-workflow ref to peptide-repo org
Reusable workflow `uses:` refs do not follow GitHub transfer redirects.
Update owner string from peptiderepo to peptide-repo post org-migration.

Agent-Session: fix-e2e-ref-20260617
2026-06-17 11:34:06 +07:00
peptiderepo
fefc8fdc13 ci: add workflow_call to ci.yml so deploy can gate on it (#34)
deploy.yml uses `uses: ./.github/workflows/ci.yml` as a pre-deploy gate.
Without workflow_call in the on: block, GitHub rejects the reference and
the auto-deploy errors on every push to main. No plugin code changed;
no version bump (CI-only change per CONVENTIONS).

Agent-Session: cowork-2026-06-17-ci-workflowcall

Co-authored-by: peptiderepo <bot@peptiderepo.com>
2026-06-17 01:37:14 +07:00
peptiderepo
c81700bd38 Adopt reusable CI standard + 300-line cleanup (#33)
* ci: adopt reusable CI + 300-line compliance for v4.7.0

- Replace per-repo CI jobs with thin reusable caller
  (peptide-e2e ci.yml@main; tests:stubs, has_js:true)
- Add permissions: contents: write (required for phpcbf auto-commit)
- deploy.yml: drop file-existence + PHP-syntax redundancy; keep PSA_VERSION check
- class-psa-admin.php: remove 37 dead backward-compat proxy lines (327→290)
- class-psa-ai-generator.php: remove 17 dead backward-compat proxy lines (309→292)
- class-psa-search.php: remove 13 dead backward-compat proxy lines (307→294)
  All three files now comply with the estate 300-line rule.
  Zero external callers of removed methods confirmed.
- package.json / package-lock.json: minimal npm manifest for lint-js npm ci step
- ARCHITECTURE.md: update ci.yml description
- PSA_VERSION: sync constant (was 4.5.0) with header (was 4.6.0) → both 4.7.0

Agent-Session: claude-sonnet-4-6-adopt-ci-20260616

* style: auto-fix PHPCS violations via phpcbf

* fix(tests): restore tested proxy methods in PSA_AI_Generator

AIGeneratorTest accesses build_validation_prompt() and
build_generation_prompt() via ReflectionClass - confirmed by running CI.
Restored both as compact single-docblock proxies to PSA_AI_Content.
Condensed section headers to keep file under 300 lines (now 299).

Agent-Session: claude-sonnet-4-6-adopt-ci-20260616

---------

Co-authored-by: peptiderepo <bot@peptiderepo.com>
Co-authored-by: peptiderepo <peptiderepo@users.noreply.github.com>
2026-06-16 20:38:06 +07:00
3 changed files with 10 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ on:
pull_request: {} pull_request: {}
push: push:
branches: [main] branches: [main]
workflow_call: {}
# Required: reusable phpcs job declares contents: write for phpcbf auto-commit, # Required: reusable phpcs job declares contents: write for phpcbf auto-commit,
# but GitHub enforces that the caller must also declare it at workflow level. # but GitHub enforces that the caller must also declare it at workflow level.
@@ -12,7 +13,7 @@ permissions:
jobs: jobs:
ci: ci:
uses: peptiderepo/peptide-e2e/.github/workflows/ci.yml@main uses: peptide-repo/peptide-e2e/.github/workflows/ci.yml@main
with: with:
tests: stubs tests: stubs
has_js: true has_js: true

View File

@@ -5,7 +5,7 @@ on:
branches: [ main ] branches: [ main ]
permissions: permissions:
contents: read contents: write
concurrency: concurrency:
group: deploy-peptide-search-ai group: deploy-peptide-search-ai
@@ -15,6 +15,7 @@ jobs:
test: test:
name: Pre-deploy tests name: Pre-deploy tests
uses: ./.github/workflows/ci.yml uses: ./.github/workflows/ci.yml
secrets: inherit
validate: validate:
name: Validate deployment name: Validate deployment
@@ -36,7 +37,7 @@ jobs:
deploy: deploy:
name: Deploy (shared pipeline) name: Deploy (shared pipeline)
needs: validate needs: validate
uses: peptiderepo/peptide-e2e/.github/workflows/deploy-app.yml@main uses: peptide-repo/peptide-e2e/.github/workflows/deploy-app.yml@main
with: with:
target_path: wp-content/plugins/peptide-search-ai target_path: wp-content/plugins/peptide-search-ai
secrets: inherit secrets: inherit

View File

@@ -5,6 +5,11 @@ All notable changes to the Peptide Search AI plugin will be documented in this f
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- `.github/workflows/ci.yml`: added `workflow_call: {}` trigger so `deploy.yml`'s `uses: ./.github/workflows/ci.yml` gate resolves correctly. No plugin code changed.
## [4.7.0] — 2026-06-16 ## [4.7.0] — 2026-06-16
### Changed ### Changed