Skip to content

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

@iuliaturc

Description

@iuliaturc

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions