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

fix(clients): support the rest of the languages #2571

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Jan 18, 2024

🧭 What and Why

Do the rest of the languages for #2561 , and add a new variable to make the templates more readable.

@millotp millotp self-assigned this Jan 18, 2024
@millotp millotp requested a review from a team as a code owner January 18, 2024 16:18
Copy link

netlify bot commented Jan 18, 2024

Deploy Preview for api-clients-automation ready!

Name Link
🔨 Latest commit 9c14824
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/65a9532ce6e21800082a9858
😎 Deploy Preview https://deploy-preview-2571--api-clients-automation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jan 18, 2024

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

Fluf22
Fluf22 previously approved these changes Jan 18, 2024
Copy link
Contributor

@Fluf22 Fluf22 left a comment

Choose a reason for hiding this comment

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

Says "rest of the languages"
Proceeds to forget Swift 😭

morganleroi
morganleroi previously approved these changes Jan 18, 2024
Copy link
Contributor

@morganleroi morganleroi left a comment

Choose a reason for hiding this comment

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

This man can code is every langage 🥇

@millotp
Copy link
Collaborator Author

millotp commented Jan 18, 2024

Proceed to forget Swift

oops, I thought you had many changes so I didn't wanted to cause merge conflict with you

@Fluf22
Copy link
Contributor

Fluf22 commented Jan 18, 2024

I have indeed, I'll do it later 😁
DI-1787

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

looooks nice

}
Copy link
Member

Choose a reason for hiding this comment

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

newlines in mustache!!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ahah I only run the linter on the tests templates, the rest it's okay

Copy link
Member

Choose a reason for hiding this comment

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

@@ -11,7 +11,7 @@ class Snippet{{client}} {
{{#snippet}}
suspend fun snippetFor{{#lambda.pascalcase}}{{method}}{{/lambda.pascalcase}}() {
// Initialize the client
val client = {{client}}(appId = "YOUR_APP_ID", apiKey = "YOUR_API_KEY"{{#hasRegionalHost}}, region = "YOUR_APP_ID_REGION"{{/hasRegionalHost}})
val client = {{client}}(appId = "YOUR_APP_ID", apiKey = "YOUR_API_KEY"{{#hasRegionalHost}}, region = "YOUR_REGION"{{/hasRegionalHost}})
Copy link
Member

Choose a reason for hiding this comment

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

it's the application region not the user region

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah I forgot to revert this one, fixed.

@millotp millotp dismissed stale reviews from Fluf22 and morganleroi via 9c14824 January 18, 2024 16:34
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

ggbglgtm

@millotp millotp enabled auto-merge (squash) January 18, 2024 16:35
@millotp millotp merged commit 2481e3a into main Jan 18, 2024
28 checks passed
@millotp millotp deleted the fix/all-monitoring branch January 18, 2024 16:51
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.

5 participants