Skip to content

If the GitHub authentication fails, the entire work is lost #1235

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

Open
iuliaturc opened this issue Feb 1, 2025 · 0 comments
Open

If the GitHub authentication fails, the entire work is lost #1235

iuliaturc opened this issue Feb 1, 2025 · 0 comments
Assignees

Comments

@iuliaturc
Copy link

iuliaturc commented Feb 1, 2025

Description

I passed an invalid GitHub key by mistake and (as expected), patchwork GenerateX fails:

│ Git command failed with:                                                                                                  │
│                                                                                                                           │
│                                                                                                                           │
│   stderr: 'remote: Write access to repository not granted.                                                                │
│ fatal: unable to access 'https://github.com/redacted/redacted/': The requested URL returned error: 403'               │
│ Git command failed with:                                                                                                  │
│                                                                                                                           │
│                                                                                                                           │
│   stderr: 'remote: Write access to repository not granted.                                                                │
│ fatal: unable to access 'https://github.com/redacted/redacted/': The requested URL returned error: 403'               │
│ Step CreatePR message: Failed to push to origin/generatedocstring-main. Skipping PR creation.                             │
│ Step PR failed                                                                                                            │
│ Error running patchflow GenerateDocstring: Step CreatePR failed

The problem is that all the work is lost (and it can take sometimes > 5 minutes and many LLM tokens). It would be nice to still get the local files modified (even if the PR fails) so that work is not lost.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


Anything else?

No response

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

No branches or pull requests

2 participants