-
Notifications
You must be signed in to change notification settings - Fork 1
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
getPatch: use github ssh url #211
Conversation
fc84cd7
to
69ed55f
Compare
openai debug - [puLL-Merge] - brave/pull-merge@211 DescriptionThis PR alters the fallback mechanism for obtaining the PR body when the diff retrieval fails. Previously, it made an additional API request to fetch repository details, but now it constructs the Possible Issues
Security Hotspots
ChangesChanges
sequenceDiagram
participant Browser
participant getPatchFunction
participant GitHubAPI
Browser ->> getPatchFunction: Request PR Data
getPatchFunction ->> GitHubAPI: Get PR Diff
GitHubAPI -->> getPatchFunction: PR Diff Fetched (Error Case)
getPatchFunction ->> GitHubAPI: Get PR Details
GitHubAPI -->> getPatchFunction: PR Details Fetched
getPatchFunction ->> getPatchFunction: Construct Clone URL
getPatchFunction ->> getPatchFunction: Clone Repository
getPatchFunction -->> Browser: Return Processed Data
graph TD
A[Browser Client] --> |Send PR Request| B[GitHub API]
B --> |PR Diff Retrieved Successfully?| C{Success?}
C --> |Yes| D[Return Response]
C --> |No| E[Retrieve PR Details]
E --> F[Construct Clone URL]
F --> G[Clone Repository]
G --> H[Process Repository]
H --> I[Return Processed Data]
|
anthropic debug - [puLL-Merge] - brave/pull-merge@211 DescriptionThis PR modifies the ChangesChanges
sequenceDiagram
participant getPatch
participant GitHub API
participant Local System
getPatch->>GitHub API: Request PR diff
alt Diff fetch successful
GitHub API->>getPatch: Return diff
else Diff fetch fails
GitHub API->>getPatch: Error
getPatch->>GitHub API: Request PR details
GitHub API->>getPatch: PR details
getPatch->>Local System: Construct clone URL
getPatch->>Local System: Clone repository
Local System->>getPatch: Repository cloned
getPatch->>Local System: Generate diff manually
end
graph TD
A[getPatch function] --> B{Fetch PR diff}
B -->|Success| C[Return diff]
B -->|Failure| D[Fetch PR details]
D --> E[Construct clone URL]
E --> F[Clone repository]
F --> G[Generate diff manually]
|
bedrock debug - [puLL-Merge] - brave/pull-merge@211 DescriptionThis PR modifies the ChangesChanges
sequenceDiagram
participant Client
participant getPatch
participant GitHub API
participant Git
Client->>getPatch: Call with PR details
getPatch->>GitHub API: Request diff
alt Diff request succeeds
GitHub API->>getPatch: Return diff
getPatch->>Client: Return diff
else Diff request fails
GitHub API->>getPatch: Error
getPatch->>GitHub API: Request PR details
GitHub API->>getPatch: Return PR details
getPatch->>Git: Clone repository
Git->>getPatch: Repository cloned
getPatch->>Client: Return manually obtained diff
end
graph TD
A[Start] --> B{Try to get diff}
B -->|Success| C[Return diff]
B -->|Fail| D[Get PR details]
D --> E[Construct clone URL]
E --> F[Clone repo]
F --> G[End]
|
No description provided.