Skip to content

Conversation

@Jwaminju
Copy link
Collaborator

No description provided.

Jwaminju and others added 30 commits August 10, 2025 00:46
* initial commit

* Upload project files

* Update requirements.txt

* Update README.md

* Upload project files

* Upload project files

* Update app.py

* Update app.py

* Update app.py

* Update app.py

* Update agent/handler.py

* Update app.py

* Update app.py

* Update app.py

* Update app.py

* Merge HF Space history

* Update gitattributes

* Add Makefile

* Delete .gitattributes

---------

Co-authored-by: Harheem Kim <[email protected]>
* Add github action for deployment to space

* Update README.md
Replace local pr_success.log writes with remote appends to pr_success.log on the log_event branch, enabling logging when running on Hugging Face Spaces.
Switch logging to JSON Lines (one result per line) with no header for easy parsing and reliability on Spaces.
Deduplicate logging and ensure every workflow run appends a JSON line to pr_success.log on the log_event branch.
append_to_log_file now resolves owner/repo/branch/path from environment (LOG_REPO or LOG_REPO_OWNER/LOG_REPO_NAME, LOG_BRANCH, LOG_FILE_PATH). Updated call site to pass only JSONL entry. Removed header handling to keep pure JSONL.
Introduce logging_github_client using LOG_GITHUB_TOKEN (fallback to GITHUB_TOKEN) to isolate permissions between user PR actions and log repository writes.
Decouple logging from GitHubPRAgent. Introduce logger/github_logger.py for appending JSONL logs to a dedicated repo/branch/file via env config. Wire workflow to use the new logger.
Simplify config by using only LOG_REPO in 'owner/repo' form. Update GitHubLogger to enforce this.
- Add HF Space and logging secrets to example.env
- Improve UX message when existing translation is detected
- Remove leftover comments/duplicate imports; ensure pr_success.log is pure JSONL (remove header)
…sages

- Refactor GitHubPRAgent to accept repository parameters in constructor
- Fix PR creation to target correct repository based on selected project
- Update TocTreeHandler to support project-specific toctree files
- Improve error messages with specific project mismatch detection
- Pass project parameter from handler to ensure proper repository targeting

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

1 participant