-
Notifications
You must be signed in to change notification settings - Fork 47.8k
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 xplat sync to ignore @generated header #29738
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Comparing: 4dcdf21...b617aec Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
@@ -329,7 +329,7 @@ jobs: | |||
git status | |||
echo "====================" | |||
echo "Checking for changes" | |||
if git status --porcelain | grep -qv '/REVISION'; then | |||
if git diff -- . ':(exclude)*REVISION' | grep -vE "^(@@|diff|index|\-\-\-|\+\+\+|@generated SignedSource)" | grep "^[+-]" > /dev/null; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment above explaining what its looking for an example of generated header to be matched. Otherwise its going to be rough for the next person who has to adjust this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Use some clever git diffing to ignore lines that only change the `@generated` header. We can't do this for the version string because the version string can be embedded in lines with other changes, but this header is always on one line. DiffTrain build for commit 8c3697a.
Use some clever git diffing to ignore lines that only change the
@generated
header. We can't do this for the version string because the version string can be embedded in lines with other changes, but this header is always on one line.