-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[dev-tool] sample publish
fix duplicate env vars in readme.md from samples
#28771
Conversation
@@ -1,246 +0,0 @@ | |||
# client library samples for JavaScript |
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.
these changes is to remove old version samples
API change check API changes are not detected in this pull request. |
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): | ||
|
||
```bash | ||
npx cross-env NETAPP_SUBSCRIPTION_ID="<netapp subscription id>" NETAPP_RESOURCE_GROUP="<netapp resource group>" NETAPP_SUBSCRIPTION_ID="<netapp subscription id>" NETAPP_RESOURCE_GROUP="<netapp resource group>" node accountsCreateOrUpdateSample.js |
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.
this file has this issue but the version is not the latest one so we just remove them.
@@ -131,13 +130,12 @@ function table(info: SampleReadmeConfiguration) { | |||
*/ | |||
function exampleNodeInvocation(info: SampleReadmeConfiguration) { | |||
const firstModule = filterModules(info)[0]; | |||
const envVars = firstModule.usedEnvironmentVariables | |||
const envVars = [...new Set(firstModule.usedEnvironmentVariables)] |
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.
@jeremymeng Could you help review this? The sample publish tools didn't handle the env vars duplications so we add this support.
sample publish
fix duplicate parameters in readme.md from samples
sample publish
fix duplicate parameters in readme.md from samplessample publish
fix duplicate env vars in readme.md from samples
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.
Dev-tool changes look good to me, thanks for the fix!
fix #28745