Skip to content

Fix Github Repository Push Issue#106

Merged
dcloud347 merged 3 commits into
mainfrom
dev
Aug 11, 2025
Merged

Fix Github Repository Push Issue#106
dcloud347 merged 3 commits into
mainfrom
dev

Conversation

@dcloud347

Copy link
Copy Markdown
Contributor

This pull request updates the context refinement prompt and output handling in ContextRefineNode, and fixes the GitHub token format for repository cloning. The main changes focus on improving prompt clarity, output format consistency, and authentication security.

Prompt and Output Format Improvements:

  • The context refinement prompt now instructs users to provide their analysis in a structured format matching the ContextRefineStructuredOutput model, with a clear example in JSON format for guidance. This replaces the previous Python class-based output format and enhances clarity for downstream processing.
  • The codebase structure is now referenced as "This is the codebase structure:" for better readability and is included in the prompt more consistently.

Code Handling Enhancements:

  • The file tree is now stored as an instance variable (self.file_tree) in ContextRefineNode, and injected directly into prompts, simplifying prompt construction and avoiding double-brace escaping. [1] [2]

Security and Authentication Fix:

  • The GitHub access token is now inserted in the HTTPS URL as x-access-token:{github_access_token} instead of just {github_access_token}, following GitHub’s recommended authentication format for cloning repositories.

@dcloud347 dcloud347 linked an issue Aug 11, 2025 that may be closed by this pull request
@dcloud347 dcloud347 merged commit e351045 into main Aug 11, 2025
2 checks passed
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.

Git push to remote

1 participant