Skip to content

Conversation

@vnz
Copy link
Owner

@vnz vnz commented Jan 26, 2026

Summary

  • Improvements to the dependabot skill based on real-world usage observations

Changes

Output Capture Clarity

  • Added 2>&1 to the command example
  • Documented that the CLI mixes stderr (log messages) and stdout (JSON), which can make piping to grep tricky

No Updates Detection

  • Made the "how to know if there are updates" section more prominent
  • Added clear ✅/❌ indicators for interpreting results
  • Emphasized that mark_as_processed without create_pull_request = no updates

Branch Handling

  • Added command to delete existing branch before creating (for re-runs)
  • Uses 2>/dev/null || true to silently handle non-existent branch case

--local Flag Clarification

  • Expanded explanation that --local . prevents GitHub cloning (not a "dry-run" mode)

Test plan

  • Review documentation changes for accuracy
  • Verify skill still works correctly with changes

🤖 Generated with Claude Code

- 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>
@vnz vnz self-assigned this Jan 26, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @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

  • Output Capture Clarity: The dependabot update command example now includes 2>&1 to ensure both standard output (JSON) and standard error (log messages) are captured, addressing the CLI's behavior of mixing them. The documentation also explicitly notes this behavior.
  • No Updates Detection: The documentation provides clearer guidance on how to interpret Dependabot CLI output to determine if updates are available, using explicit ✅/❌ indicators and emphasizing that only mark_as_processed events signify no updates.
  • Branch Handling for Re-runs: A new git branch -D command has been added to the branch creation instructions, allowing for the deletion of existing branches before creating a new one, with silent error handling for non-existent branches using 2>/dev/null || true.
  • --local Flag Clarification: The explanation for the --local . flag has been expanded to clarify that it directs Dependabot to use the local filesystem as the source, preventing GitHub cloning, and is not a 'dry-run' mode.
  • Version Update: The Dependabot skill version has been incremented from 1.1.0 to 1.2.0 in both the marketplace and plugin configuration files.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a 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.

Comment on lines +171 to 174
# 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

Choose a reason for hiding this comment

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

medium

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.

Suggested change
# 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>
@vnz vnz merged commit cd6e086 into main Jan 26, 2026
1 check passed
@vnz vnz deleted the improve-dependabot-skill-docs branch January 26, 2026 15:07
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.

1 participant