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

PR must fail when generated code is not committed #704

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Nov 6, 2024

When some code are changed by modifying code generator or templates, forgetting to commit the expected changes can lead to mistakes. I want to enforce that the PR author commits the generated code, by causing the CI to fail if the generated code is not committed. This PR achieves that.

@Yang-33 Yang-33 enabled auto-merge (squash) November 6, 2024 13:51
@Yang-33 Yang-33 mentioned this pull request Nov 6, 2024
@Yang-33 Yang-33 merged commit 6387cb7 into line:master Nov 7, 2024
6 checks passed
Copy link
Contributor

@habara-k habara-k left a comment

Choose a reason for hiding this comment

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

Thank you!

@Yang-33 Yang-33 deleted the check-no-diff-in-ci branch November 21, 2024 01:38
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