-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: royalty free images #40
Conversation
chore: sync skill.json to locale folder
WalkthroughThe pull request introduces modifications across three files: a GitHub Actions workflow, a README file, and a JSON configuration file. A new job named Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 4
🧹 Outside diff range and nitpick comments (2)
.github/workflows/update_skill_json.yml (1)
19-20
: Add validation before copying skill.jsonThe current implementation blindly copies the file without validating its existence or content.
Apply this diff to add basic validation:
- name: Sync skill.json run: | + if [ ! -f "skill.json" ]; then + echo "Error: skill.json does not exist" + exit 1 + fi + mkdir -p locale cp skill.json locale/skill.jsonlocale/skill.json (1)
4-5
: Avoid duplicate content in summary and short_description fields.The summary and short_description fields are identical. Consider making the short_description more concise and focused on the core functionality.
- "short_description": "![Python](https://img.shields.io/badge/python-3.8-blue.svg) ![Python](https://img.shields.io/badge/python-3.9-blue.svg) ![Python](https://img.shields.io/badge/python-3.10-blue.svg) ![Python](https://img.shields.io/badge/python-3.11-blue.svg) Makes your voice assistant laugh like a maniac ![A ghostly face, laughing evilly.](./ui/images/2.jpg)", + "short_description": "Makes your voice assistant laugh like a maniac",
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (5)
sshot.png
is excluded by!**/*.png
ui/images/0.jpg
is excluded by!**/*.jpg
ui/images/1.jpg
is excluded by!**/*.jpg
ui/images/2.jpg
is excluded by!**/*.jpg
ui/images/3.jpg
is excluded by!**/*.jpg
📒 Files selected for processing (4)
.github/workflows/update_skill_json.yml
(1 hunks)README.md
(2 hunks)locale/skill.json
(1 hunks)skill.json
(2 hunks)
✅ Files skipped from review due to trivial changes (2)
- README.md
- skill.json
🔇 Additional comments (1)
locale/skill.json (1)
50-53
: Verify presence and licensing of referenced images.
The credits section lists Pixabay images, which aligns with the PR objective of using properly licensed images. Let's verify their presence and licensing.
✅ Verification successful
All referenced images are present in the repository
The verification confirms that:
- All four images (0.jpg through 3.jpg) exist in the
ui/images/
directory - The only other image file is
res/icon/laugh_icon.png
, which is unrelated to this change - The image credits in
locale/skill.json
correctly document the Pixabay sources
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify the existence and location of referenced images
# Check if the images exist in the ui/images directory
echo "Checking for referenced images..."
for i in {0..3}; do
if [ -f "ui/images/${i}.jpg" ]; then
echo "Found: ui/images/${i}.jpg"
else
echo "Missing: ui/images/${i}.jpg"
fi
done
# Look for any other image files that might need licensing review
echo -e "\nChecking for other image files..."
fd -e jpg -e png -e gif -e jpeg
Length of output: 689
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@@ -7,7 +7,7 @@ | |||
|
|||
Makes your voice assistant laugh like a maniac | |||
|
|||
![A ghostly face, laughing evilly.](./sshot.png) | |||
![A ghostly face, laughing evilly.](./ui/images/2.jpg) |
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.
images should be moved to "gui/all", this ensures in docker setups they are available across containers as the "gui" folder gets copied to a shared volume
should also pin ovos-bus-client>1.0.0 for this caching functionality
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.
similarly, in the code we should no longer pass absolute paths to allow the cached path to resolve instead
self.gui.show_image(join(dirname(__file__), "ui", "images", str(pic) + ".jpg"))
-> self.gui.show_image(str(pic) + ".jpg"))
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.
Do we have this documented somewhere? Wasn't aware this was an option
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.
Looks like this is in #38
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.
wrong path for skill.json , should go into en-us subfolder
* feat: royalty free images chore: sync skill.json to locale folder * Update skill.json * adjust action * Sync skill.json * add dependency to avoid race condition * explicit license * Update .github/workflows/update_skill_json.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * move skill.json --------- Co-authored-by: mikejgray <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
chore: sync skill.json to locale folder
Closes #16
Summary by CodeRabbit
New Features
skill.json
file.README.md
with new image references and added a "License" section.skill.json
with updated image paths and new credits for AI-generated images.Bug Fixes
skill.json
andREADME.md
to ensure proper display.