Skip to content
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

Support deployPercentage in publish API #91

Merged
merged 5 commits into from
Jun 5, 2024
Merged

Conversation

remdash
Copy link
Contributor

@remdash remdash commented Jun 5, 2024

This PR aims at adding support for the deployPercentage parameter when calling the publish API.

readme.md Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@remdash
Copy link
Contributor Author

remdash commented Jun 5, 2024

let me know if there is anything else to improve (squashing commits for example).

index.js Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
@fregante fregante changed the title feat(deploy percentage): add deploy percentage support for publish API call Support deployPercentage in publish API Jun 5, 2024
@fregante fregante linked an issue Jun 5, 2024 that may be closed by this pull request
@fregante fregante merged commit e383b22 into fregante:main Jun 5, 2024
2 checks passed
@@ -49,7 +49,8 @@ store.uploadExisting(myZipFile, token).then(res => {
```javascript
const target = 'default'; // optional. Can also be 'trustedTesters'
const token = 'xxxx'; // optional. One will be fetched if not provided
store.publish(target, token).then(res => {
const deployPercentage = 25; // optional. Will default to 100%.
store.publish({ target, deployPercentage, token }).then((res) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, I'm not ready to release a breaking version. I already have a partial rewrite in progress and I'd want to release that instead. See #84

Can you revert this API to accept a third parameter?

Copy link
Contributor Author

@remdash remdash Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it should be changed this way if I understand correctly:

store.publish(target, token, deployPercentage)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it is: #93

@fregante
Copy link
Owner

fregante commented Jun 7, 2024

v3.1.0 is out, let me know how it goes.

Could you also add a flag to https://github.com/fregante/chrome-webstore-upload-cli?

@remdash
Copy link
Contributor Author

remdash commented Jun 10, 2024

Here is the CLI update MR: fregante/chrome-webstore-upload-cli#83

@remdash
Copy link
Contributor Author

remdash commented Jun 18, 2024

Just a quick comment to tell you that I have had the opportunity to test it and it worked !

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

Successfully merging this pull request may close these issues.

Add support for deployPercentage in store.publish API
2 participants