Conversation
- Add generateGitPatchStep to workflow compiler after agentic execution - Generate git patch from initial commit SHA to current state using git format-patch - Upload patch as aw.patch artifact with actions/upload-artifact@v4 - Update logs command to recognize and report aw.patch artifacts - Add comprehensive tests for git patch functionality - Update documentation to include git patch in artifact list - All tests passing and linting clean Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot update test-Claude prompt to append a random quote to a new file "quote.md" |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done! I've updated the test-Claude prompt to include random quote generation. The workflow now instructs Claude to:
The changes have been implemented in both the source markdown file and the compiled lock file. Commit: a765577 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
pkg/workflow/compiler.go
Outdated
| yaml.WriteString(" if git diff --quiet \"$INITIAL_SHA\" HEAD; then\n") | ||
| yaml.WriteString(" echo \"No changes detected since initial commit\"\n") | ||
| yaml.WriteString(" # Create an empty patch file to indicate no changes\n") | ||
| yaml.WriteString(" echo \"No changes since commit $INITIAL_SHA\" > /tmp/aw.patch\n") |
There was a problem hiding this comment.
@copilot do not create .patch file is there is no changes
There was a problem hiding this comment.
Modified the logic to skip patch file creation entirely when no changes are detected. Now only creates patch files when actual changes exist, avoiding unnecessary empty artifacts. Commit: 730959f
pkg/workflow/compiler.go
Outdated
| yaml.WriteString(" with:\n") | ||
| yaml.WriteString(" name: aw.patch\n") | ||
| yaml.WriteString(" path: /tmp/aw.patch\n") | ||
| yaml.WriteString(" if-no-files-found: warn\n") |
There was a problem hiding this comment.
Changed if-no-files-found setting from warn to ignore. Also added conditional logic to only run the upload step when the patch file actually exists using hashFiles(). Commit: 730959f
…tion, and ignore setting Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…it patch generation and upload steps
…s and update related tests
…s and review comments across workflows
… improve no-change detection logic
…implify upload condition
…mprove readability in workflow summaries
Smoke Test Results✅ File Writing Test: Created Overall Status: FAIL (1/3 tests passed)
|
This PR implements git patch generation for agentic workflows as requested in issue #133, with enhanced functionality based on code review feedback.
Git Patch Generation Features
The feature captures all changes made during workflow execution and makes them available as downloadable artifacts, with intelligent handling of scenarios where no changes occur.
Enhanced Workflow Compiler
generateGitPatchStep()function that executes after agentic executiongit statusfirst to show current repository state for debugginggit add -A${{ github.sha }}as the reference point for patch generationhashFiles()to check file existenceif-no-files-found: ignoreinstead ofwarnfor cleaner workflow outputLogs Command Enhancement
aw.patchfilesTest-Claude Workflow Enhancement
Enhanced the test-Claude workflow to generate inspirational quotes for developers:
quote.mdfile with separator for multiple quotesWritetool for file operationsExample Workflow Steps Generated
Key Improvements
git statuscommand for better debugging visibilityhashFiles()conditionignoresetting to prevent warnings about missing files in normal scenariosTesting
The implementation ensures that users can easily access and review all changes made by agentic workflows through the standard
gh aw logscommand, with patches downloaded alongside other artifacts only when changes actually occur. The enhanced test-Claude workflow now provides both code analysis and inspirational content for developers.Fixes #133.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.