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

chore(ci): close generation comment with last commit #513

Merged
merged 5 commits into from
May 19, 2022

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented May 19, 2022

🧭 What and Why

When there is no code gen, the comment is never updated, we need to run the pushGeneratedCode in any case.
Include the last generated commit in the closed comment because it's not actually deleted and can be useful

I had to mock some functions for tests.

🧪 Test

CI

@millotp millotp self-assigned this May 19, 2022
@netlify
Copy link

netlify bot commented May 19, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit b3a10ca
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62863ab864ece300089db837

@algolia algolia deleted a comment from algolia-bot May 19, 2022
@millotp millotp force-pushed the chore/close-comment branch from 788e762 to 2ba72c1 Compare May 19, 2022 10:02
@algolia-bot
Copy link
Collaborator

algolia-bot commented May 19, 2022

✗ 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 last generated commit.

@millotp millotp requested review from a team, damcou and shortcuts and removed request for a team May 19, 2022 10:14
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.

Nice :D

scripts/ci/codegen/__tests__/codegen.test.ts Outdated Show resolved Hide resolved
scripts/ci/codegen/text.ts Outdated Show resolved Hide resolved
scripts/ci/codegen/text.ts Outdated Show resolved Hide resolved
millotp and others added 4 commits May 19, 2022 13:47
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.

👁️ 👄 👁️ nice

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