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

Added installable githook for creating a platform commit with the buildscript changes. #3529

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Oct 4, 2024

StoryDX-3092 We have a git hook that runs `state commit` automatically on `git commit`

The hook also auto-updates the buildscript with any resulting changes prior to commit.

The end result is that the committed buildscript will be the latest one, but it may NOT be what the user intended to commit. For example, if the ordering of requirements in the platform commit's buildscript is different, the buildscript committed locally will have the new order, not the order the user originally intended to commit.

…ldscript changes.

The hook also auto-updates the buildscript with any resulting changes prior to commit.
@mitchell-as mitchell-as marked this pull request as ready for review October 4, 2024 19:28
Copy link
Member

@Naatan Naatan left a comment

Choose a reason for hiding this comment

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

This looks good to me, but I don't think we should be using this as a githook on our project. We are very often playing with the buildscript locally in a way that is not meant to be committed.

Suggest putting this in scripts/git-hooks/buildscript-commit.

@mitchell-as
Copy link
Contributor Author

It may look like it, but it wasn't enabled as our pre-commit hook. I agree that we don't want that. If it was in a .githooks directory (with the dot), then it would be.

Regardless, I have applied your suggested name change and added some usage information to compensate.

@mitchell-as mitchell-as merged commit 26f1a31 into version/0-47-0-RC1 Oct 15, 2024
8 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-3092 branch October 15, 2024 14:44
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.

2 participants