Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gptme #54

Merged
merged 1 commit into from
Dec 25, 2024
Merged

Gptme #54

merged 1 commit into from
Dec 25, 2024

Conversation

0xbrayo
Copy link
Member

@0xbrayo 0xbrayo commented Dec 24, 2024

Important

Adds GitHub Actions workflow for bot and refactors Tauri app with file watcher, tray icon sync, and logging.

  • GitHub Actions:
    • Adds gptme.yml workflow to trigger on issue comments using ErikBjare/gptme action.
    • Uses OPENAI_API_KEY and GITHUB_TOKEN secrets for authentication.
    • Restricts bot actions to erikbjare and 0xbrayo.
  • Tauri Application:
    • Adds SpecificFileWatcher struct in lib.rs to monitor file changes.
    • Refactors tray icon initialization with TRAY_CONDVAR for synchronization.
    • Introduces UserConfig struct for managing user settings.
    • Initializes logging in run() function.
    • Removes lib.rs.orig and main.rs.orig files.

This description was created by Ellipsis for 86ba1a6. It will automatically update as commits are pushed.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 86ba1a6 in 1 minute and 24 seconds

More details
  • Looked at 353 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. .github/workflows/gptme.yml:21
  • Draft comment:
    Ensure that the allowlist parameter is documented or explained to ensure only intended users are allowed to interact with the bot.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The allowlist parameter should be documented or explained to ensure only intended users are allowed.
2. src-tauri/src/lib.rs:49
  • Draft comment:
    Ensure that init_tray_id handles potential errors gracefully, especially in multi-threaded contexts where TRAY_ID might be accessed concurrently.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The init_tray_id function is a new addition and should be reviewed for potential issues.
3. src-tauri/src/lib.rs:57
  • Draft comment:
    The get_tray_id function now waits for initialization. Ensure this change does not introduce deadlocks or performance issues, especially in multi-threaded contexts.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The get_tray_id function now waits for initialization, which is a change from the previous implementation. This should be reviewed for potential deadlocks or performance issues.

Workflow ID: wflow_iSFZRxEkJfrQR3mj


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

.github/workflows/gptme.yml Show resolved Hide resolved
@0xbrayo 0xbrayo force-pushed the gptme branch 3 times, most recently from d533d39 to d0c681e Compare December 24, 2024 15:56
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
allowlist: "erikbjare 0xbrayo"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these should maybe be comma separated? (could be wrong)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works this way too. But I'll use the comma separation just to be safe

@ErikBjare
Copy link
Member

Would be cool if you could get this to work, although I fear it might be extra rough around the edges in repos other than gptme.

Might also want to throw in a gptme.toml file.

@0xbrayo 0xbrayo merged commit a13d9aa into ActivityWatch:master Dec 25, 2024
5 checks passed
@0xbrayo
Copy link
Member Author

0xbrayo commented Dec 25, 2024

Merged will add a gptme.toml later

@0xbrayo 0xbrayo deleted the gptme branch January 8, 2025 17:02
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