-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: download gh repo contents through commit SHA #920
Conversation
Pull request is not up to date with the base branch. Reviewpad will rebase it. After the rebase, please trigger Reviewpad by running the command |
4b18140
to
0aee23b
Compare
Pull request is not up to date with the base branch. Reviewpad will rebase it. After the rebase, please trigger Reviewpad by running the command |
6e23e80
to
1826bd2
Compare
Pull request is not up to date with the base branch. Reviewpad will rebase it. After the rebase, please trigger Reviewpad by running the command |
49ea4ca
to
a335114
Compare
/reviewpad run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request is ready to be merged. Reviewpad will merge it for you.
This reverts commit 2100d93.
Description
Summary generated by Reviewpad on 31 May 23 13:03 UTC
This pull request adds a new DownloadMethod enum to the GithubClient struct, along with a DownloadContentsOptions struct for more flexibility in downloading files with either the branch name or SHA. It also updates several functions to use this new functionality, including loadExtension, GetSymbolsFromPatch, GetSymbolsFromFileInBranch, ReviewpadFileChanged, and DownloadReviewpadFileFromGitHub.
🤖 Generated by Copilot at be76732
This pull request improves the functionality and readability of the code that downloads files from GitHub for reviewpad. It adds a new method to
GithubClient
to download files by commit SHA, renames another method to specify its parameter, and updates the usages of these methods in various files. It also enhances the detection of changes in reviewpad configuration files across pull requests.Code review and merge strategy
Ask: this pull request requires a code review before the merge
How
🤖 Generated by Copilot at be76732
DownloadContents
method toDownloadContentsFromBranchName
inGithubClient
struct to clarify parameter (link, link, link, link, link)DownloadContentsFromCommitSHA
method toGithubClient
struct to download file contents from a specific commit (link, link)DownloadReviewpadFileFromGitHub
function toDownloadReviewpadFileFromGitHubThroughBranchName
inutils/file.go
to clarify parameter (link)DownloadReviewpadFileFromGitHubThroughCommitSHA
function inutils/file.go
to download reviewpad configuration file from a specific commit (link)