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(php): format part 2 #443

Merged
merged 6 commits into from
Apr 28, 2022
Merged

fix(php): format part 2 #443

merged 6 commits into from
Apr 28, 2022

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

I should've used the .prettierignore. Since the spread code script rely on the path, it kinda broke the PHP repo folders.

🧪 Test

CI :D

@netlify
Copy link

netlify bot commented Apr 28, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 521f602
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/626a582f7f6d6c0009e3ad47

@algolia-bot
Copy link
Collaborator

algolia-bot commented Apr 28, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.

millotp
millotp previously approved these changes Apr 28, 2022
@@ -1 +1 @@
9.2
9.2.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

you changed the config file so no need to bump the cache

Copy link
Member Author

Choose a reason for hiding this comment

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

see #443 (comment), I wanted to try full clear to see if I get the same output

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes it will have the same effect of clearing the cache, changing the config changes the cache key

Copy link
Collaborator

Choose a reason for hiding this comment

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

this file should rarely be used now

Copy link
Collaborator

Choose a reason for hiding this comment

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

ahah you didn't had to revert it, it was just an advice

Copy link
Member Author

Choose a reason for hiding this comment

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

ah actually it does not run codegen without this change :(

Copy link
Collaborator

@millotp millotp Apr 28, 2022

Choose a reason for hiding this comment

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

ah yes because even though the cache key is different it doesn't set any RUN_ variable, I guess more common files should be added.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess this should be enough d7bdf7c

(I need the codegen to run in this PR)

@shortcuts shortcuts marked this pull request as ready for review April 28, 2022 08:02
@shortcuts shortcuts requested a review from millotp April 28, 2022 08:02
@shortcuts shortcuts self-assigned this Apr 28, 2022
@shortcuts shortcuts enabled auto-merge (squash) April 28, 2022 08:02
@shortcuts shortcuts disabled auto-merge April 28, 2022 08:29
millotp
millotp previously approved these changes Apr 28, 2022
millotp
millotp previously approved these changes Apr 28, 2022
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

nice !

const PHP_CLIENT_FOLDER = getLanguageFolder('php');

// Files that are common to every clients
const CLIENTS_COMMON_FILES = ['config/clients.config.json'];
Copy link
Collaborator

Choose a reason for hiding this comment

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

you could add openapitools.json to this list

@shortcuts shortcuts enabled auto-merge (squash) April 28, 2022 08:43
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

The cache fail was just a fluke ?

@shortcuts shortcuts merged commit b81e664 into main Apr 28, 2022
@shortcuts shortcuts deleted the fix/php-format-spread branch April 28, 2022 09:26
@shortcuts
Copy link
Member Author

The cache fail was just a fluke ?

Yep... looks like so

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.

3 participants