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

Fix wrong condition used in filter_models #29673

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Fix wrong condition used in filter_models #29673

merged 1 commit into from
Mar 15, 2024

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Mar 15, 2024

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

@@ -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),
Copy link
Collaborator Author

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.

@gante
Copy link
Member

gante commented Mar 15, 2024

Happens to the best of us, @ydshieh! Thank you for fixing 💛

@HuggingFaceDocBuilderDev

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.

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@ydshieh ydshieh merged commit 174aecd into main Mar 15, 2024
8 checks passed
@ydshieh ydshieh deleted the fix_my_ass branch March 15, 2024 14:38
ydshieh added a commit that referenced this pull request Mar 15, 2024
ydshieh added a commit that referenced this pull request Mar 15, 2024
Revert "Fix wrong condition used in `filter_models` (#29673)"

This reverts commit 174aecd.
itazap pushed a commit that referenced this pull request May 14, 2024
update

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
itazap pushed a commit that referenced this pull request May 14, 2024
Revert "Fix wrong condition used in `filter_models` (#29673)"

This reverts commit 174aecd.
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.

4 participants