Skip to content

Conversation

@ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Feb 24, 2025

What does this PR do?

Notify new model PR being merged to main



def get_new_python_files() -> List[str]:
def get_new_python_files(diff_with_last_commit=False) -> List[str]:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Use diff_with_last_commit to indiciate we are compare files in main (head vs parent)

shell: bash
run: |
python -m pip install gitpython
python -c 'from utils.pr_slow_ci_models import get_new_model; new_model = get_new_model(diff_with_last_commit=True); print(new_model)' | tee output.txt
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

on main, we need to use diff_with_last_commit=True

@ydshieh ydshieh requested a review from LysandreJik February 24, 2025 15:54
@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
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@ydshieh ydshieh merged commit 2ab7bdc into main Feb 24, 2025
11 checks passed
@ydshieh ydshieh deleted the action_to_notify_new_model_push branch February 24, 2025 16:53
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