Skip to content

Conversation

@pelikhan
Copy link
Contributor

Automatically created PR to add workflow: githubnext/agentics/weekly-research

Copilot AI and others added 8 commits August 13, 2025 11:43
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Add FileTracker struct to track created/modified files during workflow operations
- Modify AddWorkflowWithRepoAndPR to use file tracking with rollback on git operation failure
- Create AddWorkflowWithTracking function that tracks all file operations (md, lock.yml, .gitattributes)
- Update stageWorkflowChanges to stage specific tracked files instead of entire directories
- Add compileWorkflowWithTracking to track compilation-generated files
- Implement rollback functionality that deletes created files on error
- Add comprehensive tests for file tracker functionality
- Maintain backward compatibility with existing AddWorkflow function

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…iles

- Move FileTracker struct and methods to pkg/cli/file_tracker.go for better organization
- Add OriginalContent map to store file content before modification
- Enhance TrackModified() to capture original content automatically
- Add RollbackModifiedFiles() method to restore files to original state
- Add RollbackAllFiles() method for comprehensive rollback
- Update defer function to use RollbackAllFiles() instead of RollbackCreatedFiles()
- Fix timing of tracking calls to happen before file modification
- Add comprehensive tests for all rollback scenarios

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan closed this Aug 13, 2025
@pelikhan pelikhan deleted the add-workflow-weekly-research-4011 branch August 13, 2025 15:21
pelikhan added a commit that referenced this pull request Sep 4, 2025
* Add create-discussion safe output type with REST API implementation and validation support (#43)

* Initial plan

* Add create-discussion safe output type

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Convert create-discussion from GraphQL to REST API and remove discussions:write permission requirement

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Add create-discussion validation support to collect_ndjson_output.cjs

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Revert package-lock.json name change from gh-aw-copilots back to gh-aw

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>

* Add JSON repair capabilities with graceful error handling for LLM-generated malformed JSON (#42)

* Initial plan

* Implement JSON repair capabilities for safe-output JSONL parser

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Add comprehensive test coverage for JSON repair functionality

- Added 16 new test cases covering various JSON repair scenarios
- Tests include mixed quote types, bracket issues, Unicode chars, complex nesting
- Added graceful failure tests for edge cases beyond repair capabilities
- All 190 JavaScript tests now pass, including 41 JSONL parser tests
- Tests validate robustness of LLM-generated JSON handling

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Improve JSON parsing error handling: print to console and return undefined instead of throwing exceptions

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Refactor JSON parsing logic: streamline error handling and improve validation for output types

* Add JSON repair and parsing functions to handle malformed input

* Fix test cases for JSON repair functionality

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>

* Add create-pull-request-review-comment safe-output type with comprehensive validation (#44)

* Add prettier integration for automated .cjs file formatting (#46)

* Fix Codex execution failure not failing GitHub Actions step (#48)

* Add precise JSON path to source location mapping for frontmatter validation errors (#47)

* Add network permissions validation and settings generation for Claude

* Add conditional task execution for PRs with 'prr' in title for Claude and Codex workflows

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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