Skip to content

Comments

✨ add bump-nuget script for simplified package version updates#9

Merged
gimlichael merged 1 commit intomainfrom
automation/bug-fixing
Feb 20, 2026
Merged

✨ add bump-nuget script for simplified package version updates#9
gimlichael merged 1 commit intomainfrom
automation/bug-fixing

Conversation

@gimlichael
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 20, 2026 14:54
@gimlichael gimlichael merged commit a8b61bb into main Feb 20, 2026
1 of 6 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Feb 20, 2026

Warning

Rate limit exceeded

@gimlichael has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 21 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch automation/bug-fixing

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gimlichael gimlichael deleted the automation/bug-fixing branch February 20, 2026 14:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub utility script to automate “service update” dependency bumps by updating centrally-managed NuGet versions in Directory.Packages.props based on a triggering repo + version.

Changes:

  • Introduces .github/scripts/bump-nuget.py to bump only packages associated with the triggering source repository.
  • Implements a prefix-based package allowlist (SOURCE_PACKAGE_MAP) and updates matching <PackageVersion ... Version="..."> entries via regex.

Comment on lines +83 to +85
changes = []
skipped_third_party = []

Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

skipped_third_party is a misleading name: the list contains all non-trigger packages, including other first-party Codebelt packages (eg, Codebelt.Bootstrapper.Console) when TRIGGER_SOURCE is cuemon. Consider renaming it to something like skipped_non_trigger (or splitting first-party vs third-party) so the log output matches reality.

Copilot uses AI. Check for mistakes.
with open("Directory.Packages.props", "w") as f:
f.write(new_content)

return 0 if changes else 0 # Return 0 even if no changes (not an error)
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

return 0 if changes else 0 is equivalent to return 0 and makes the control flow harder to read. Consider simplifying it to a plain return 0 (and, if needed later, return non-zero for true error conditions only).

Suggested change
return 0 if changes else 0 # Return 0 even if no changes (not an error)
return 0 # Return 0 even if no changes (not an error)

Copilot uses AI. Check for mistakes.
Comment on lines +119 to +122
if skipped_third_party:
print()
print(f"Skipped {len(skipped_third_party)} third-party package(s):")
print("\n".join(skipped_third_party[:5])) # Show first 5
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

The message "Skipped ... third-party package(s)" is inaccurate because the skip list includes any package that isn't from the triggering source, not only third-party packages. Consider adjusting the wording (or separately counting true third-party vs other first-party) to prevent confusing workflow logs.

Copilot uses AI. Check for mistakes.
Comment on lines +54 to +57
if not TRIGGER_SOURCE:
return False
prefixes = SOURCE_PACKAGE_MAP.get(TRIGGER_SOURCE, [])
return any(package_name.startswith(prefix) for prefix in prefixes)
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

If TRIGGER_SOURCE is unknown (not in SOURCE_PACKAGE_MAP) or maps to an empty prefix list, prefixes becomes empty and is_triggered_package will always return false. That makes the script silently skip every PackageVersion and still exit 0; consider normalizing TRIGGER_SOURCE and emitting a clear warning or failing fast when the source is unrecognized to avoid “successful” service updates that didn't bump anything.

Copilot uses AI. Check for mistakes.
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