-
Notifications
You must be signed in to change notification settings - Fork 0
docs(dependabot): improve skill clarity based on real-world usage v1.2.0 #9
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
Conversation
- Add 2>&1 to command example and explain stdout/stderr mixing - Make "no updates" detection more prominent with clear indicators - Add branch cleanup command for re-runs - Clarify --local flag purpose (prevents GitHub clone, not dry-run) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary of ChangesHello @vnz, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the documentation for the Dependabot skill, providing improved clarity and practical guidance based on observed real-world usage. The changes aim to make it easier for users to understand the Dependabot CLI's output, correctly identify available updates, manage branches for re-runs, and properly interpret command-line flags, ultimately improving the skill's usability. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request improves the documentation for the dependabot skill, enhancing clarity based on real-world usage. The changes, such as adding 2>&1 to commands, clarifying the --local flag, and improving branch handling for re-runs, are valuable. I've suggested a small improvement to the branch creation logic to make it even more robust by ensuring it always branches from the repository's default branch and by using a more concise git command.
| # If branch already exists from a previous run, delete it first: | ||
| git branch -D dependabot/<ecosystem>-updates 2>/dev/null || true | ||
|
|
||
| git checkout -b dependabot/<ecosystem>-updates |
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.
To make the script more robust for re-runs, it's best to first switch to the repository's default branch. This ensures the new branch is always created from the correct base, preventing branching from another feature branch. Additionally, you can simplify the branch creation logic. Using git checkout -B <branch> will create the branch if it doesn't exist, or reset it to the current HEAD if it does. This is more concise than deleting and then creating it.
| # If branch already exists from a previous run, delete it first: | |
| git branch -D dependabot/<ecosystem>-updates 2>/dev/null || true | |
| git checkout -b dependabot/<ecosystem>-updates | |
| # Switch to default branch and create/reset the feature branch | |
| DEFAULT_BRANCH=$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name) | |
| git checkout "$DEFAULT_BRANCH" | |
| git checkout -B dependabot/<ecosystem>-updates |
- Fix Claude Code URL (.ai → .com) - Improve description with natural trigger phrases for better skill matching - Add branch sync step (checkout main && pull) before creating feature branch Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary
Changes
Output Capture Clarity
2>&1to the command exampleNo Updates Detection
mark_as_processedwithoutcreate_pull_request= no updatesBranch Handling
2>/dev/null || trueto silently handle non-existent branch case--local Flag Clarification
--local .prevents GitHub cloning (not a "dry-run" mode)Test plan
🤖 Generated with Claude Code