Skip to content

feat: adding applyPathContent and applyFiles for supporting autofix f…#1371

Open
rpapani wants to merge 1 commit intomainfrom
code-apply-patch
Open

feat: adding applyPathContent and applyFiles for supporting autofix f…#1371
rpapani wants to merge 1 commit intomainfrom
code-apply-patch

Conversation

@rpapani
Copy link
Contributor

@rpapani rpapani commented Feb 24, 2026

Autofix flows are currently using patch content stored in the suggestion or patch files, not the actual patch, so added the following support

  • Adds two new public methods to CloudManagerClient — applyPatchContent for applying patches from in-memory strings (no S3 download) and applyFiles for writing files directly to a clone and committing. These support autofix workflows where the patch content or file data is already available in memory.
  • Internally, the three apply methods (applyPatch, applyPatchContent, applyFiles) now share a single #applyChanges orchestration path that configures git identity, checks out the branch, runs the caller's apply callback, and optionally stages + commits.

Required for https://github.com/adobe/spacecat-autofix-worker/pull/445

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