-
Notifications
You must be signed in to change notification settings - Fork 27k
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 wrong condition used in filter_models
#29673
Conversation
@@ -1244,7 +1244,7 @@ def parse_commit_message(commit_message: str) -> Dict[str, bool]: | |||
args.output_file, | |||
diff_with_last_commit=diff_with_last_commit, | |||
json_output_file=args.json_output_file, | |||
filter_models=(not commit_flags["no_filter"] or is_main_branch), |
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.
the previous one here was wrong: this actually filter whenever it is on main
branch.
Happens to the best of us, @ydshieh! Thank you for fixing 💛 |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
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.
Thanks for fixing!
update Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
What does this PR do?
My previous #28816 used a stupid wrong condition.
The correct one should be : we don't want to filter when we are on
main
branch.I am so bad at boolean op, sorry
cc @gante