-
Notifications
You must be signed in to change notification settings - Fork 54
feat: provide an opt to skip s3 upload #140
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
base: master
Are you sure you want to change the base?
Conversation
This skips S3 upload completely which does not fix #139. You can instead not configure S3, then there already will be no upload. My issue was about skipping upload of |
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 Overview
This PR adds an optional feature to skip S3 uploads of diff and output images when only the base image upload is needed. This provides more granular control over which files get uploaded to S3, potentially improving performance and reducing bandwidth usage.
- Added
uploadOnlyBaseImage
parameter to control S3 upload behavior - Restructured upload logic to conditionally upload diff and output images
- Updated documentation to explain the new configuration option
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
src/index.ts | Added uploadOnlyBaseImage parameter and restructured S3 upload logic to conditionally skip diff/output uploads |
README.md | Updated AWS configuration documentation to include the new uploadOnlyBaseImage option |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
fs.readFile(this._getBaseImagePath(baseImage, options), (err: any, data: any) => { | ||
if (err) throw err; | ||
else { | ||
const base64data = new Buffer(data, "binary"); |
Copilot
AI
Oct 4, 2025
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.
The Buffer constructor is deprecated. Use Buffer.from(data, 'binary') instead for better security and compatibility.
Copilot uses AI. Check for mistakes.
|
||
fs.readFile(this._getActualImagePath(baseImage), (err: any, data: any) => { | ||
if (err) throw err; | ||
const base64data = new Buffer(data, "binary"); |
Copilot
AI
Oct 4, 2025
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.
The Buffer constructor is deprecated. Use Buffer.from(data, 'binary') instead for better security and compatibility.
Copilot uses AI. Check for mistakes.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
resolves #139