-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Restrict theme asset downloads to .yaml files #4923
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
base: main
Are you sure you want to change the base?
Changes from all commits
678594a
9117951
1c77788
000bdc0
c7a25e9
bd45bc8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -230,4 +230,28 @@ def test_gather_plugin_different_card_name(repository_plugin): | |||||||||||||||||||||||||||||||||||||
| repository_plugin.update_filenames() | ||||||||||||||||||||||||||||||||||||||
| files = [x.path for x in repository.gather_files_to_download()] | ||||||||||||||||||||||||||||||||||||||
| assert "card.js" in files | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| def test_gather_theme_files_from_release_only_yaml(repository_theme): | ||||||||||||||||||||||||||||||||||||||
| """Test that only .yaml files are downloaded from theme release assets.""" | ||||||||||||||||||||||||||||||||||||||
| repository = repository_theme | ||||||||||||||||||||||||||||||||||||||
| repository.ref = "1.0.0" | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+234
to
+237
|
||||||||||||||||||||||||||||||||||||||
| def test_gather_theme_files_from_release_only_yaml(repository_theme): | |
| """Test that only .yaml files are downloaded from theme release assets.""" | |
| repository = repository_theme | |
| repository.ref = "1.0.0" | |
| def test_gather_theme_files_from_release_only_yaml(repository_theme): | |
| """Test that only .yaml files are downloaded from theme release assets.""" | |
| repository = repository_theme | |
| repository.ref = "1.0.0" |
Copilot
AI
Nov 14, 2025
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.
Incorrect indentation: This line has inconsistent indentation compared to the rest of the function body. It should be aligned with line 236 (4 spaces), not 8 spaces.
| repository.ref = "1.0.0" | |
| repository.ref = "1.0.0" |
Copilot
AI
Nov 14, 2025
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.
Variable test_gather_theme_files_from_release_only_yaml is not used.
| def test_gather_theme_files_from_release_only_yaml(repository_theme): | |
| """Test that only .yaml files are downloaded from theme release assets.""" | |
| repository = repository_theme | |
| repository.ref = "1.0.0" | |
| def test_gather_theme_files_from_release_only_yaml(repository_theme): | |
| """Test that only .yaml files are downloaded from theme release assets.""" | |
| repository = repository_theme | |
| repository.ref = "1.0.0" |
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.
Inconsistent indentation: This line has excessive indentation (appears to have multiple leading spaces beyond what's needed). It should align with the surrounding code at the proper indentation level for code inside the
for asset in release.assets or []:loop.