Skip to content

Weblate pin bump workflow: fix orphan-branch PR failure.#134

Merged
wpak-ai merged 3 commits into
cppalliance:developfrom
AuraMindNest:fix/weblate-bump-PR
Jun 24, 2026
Merged

Weblate pin bump workflow: fix orphan-branch PR failure.#134
wpak-ai merged 3 commits into
cppalliance:developfrom
AuraMindNest:fix/weblate-bump-PR

Conversation

@AuraMindNest

@AuraMindNest AuraMindNest commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Close #129.

Summary by CodeRabbit

  • Bug Fixes
    • Improved the automated update flow to handle existing remote branches more reliably and avoid duplicate pull requests.
    • Added better recovery when branch updates fail, so update PRs are created more consistently.
    • Ensured update PRs are tagged with the expected labels.

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@AuraMindNest, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 54 minutes and 16 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bfdb2563-4ec8-4ebb-bb23-33e319ff1fce

📥 Commits

Reviewing files that changed from the base of the PR and between ca6a2b8 and 70ef994.

📒 Files selected for processing (2)
  • .github/WORKFLOWS.md
  • .github/workflows/weblate-pin-bump.yml
📝 Walkthrough

Walkthrough

Adds a Dependabot ignore rule to skip Weblate* dependency updates under the uv ecosystem. Refactors the weblate-pin-bump workflow to add issues: write permission, detect pre-existing remote branches and open PRs before acting, introduce ensure_labels and create_pr helper functions, and handle push failures with a fallback PR creation path.

Changes

Weblate bump workflow and Dependabot fixes

Layer / File(s) Summary
Dependabot ignore rule for Weblate*
.github/dependabot.yml
Adds an ignore entry matching Weblate* under the uv package ecosystem so Dependabot skips those dependency updates.
Workflow permissions and pre-flight state detection
.github/workflows/weblate-pin-bump.yml
Adds issues: write permission and introduces gh pr list and git ls-remote checks to determine whether an open PR or remote branch already exists before any branch or push operations.
PR creation helpers, branch force-update, and push fallback
.github/workflows/weblate-pin-bump.yml
Introduces ensure_labels and create_pr helper functions, force-updates the branch with git checkout -B, stages only the bump files, conditionally commits when staged changes exist, and falls back to fetching the remote head and opening a PR if git push fails.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • cppalliance/cppa-weblate-plugin#51: Both PRs modify .github/dependabot.yml; that PR introduces the overall Dependabot configuration while this one adds a Weblate* ignore rule to the same uv ecosystem block.
  • cppalliance/cppa-weblate-plugin#89: Contains overlapping changes to both .github/dependabot.yml Weblate ignore rules and the weblate-pin-bump workflow's PR creation logic.

Suggested reviewers

  • henry0816191
  • wpak-ai

Poem

🐇 Hoppity-hop through the workflow maze,
Where orphan branches once caused a haze,
Now labels are checked and push failures caught,
And Weblate* ignores are carefully wrought.
No more failed bumps to ruin the day —
This bunny has patched all the problems away! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: fixing orphan-branch PR failures in the Weblate pin bump workflow.
Linked Issues check ✅ Passed The workflow changes address #129 by handling existing orphan branches and preventing PR creation failures.
Out of Scope Changes check ✅ Passed No clear unrelated changes stand out; the dependabot ignore rule and workflow edits support the Weblate bump fix.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@AuraMindNest AuraMindNest self-assigned this Jun 24, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/weblate-pin-bump.yml:
- Around line 106-110: The existing-remote-branch path in the workflow only
calls create_pr for an already-published branch, so it never repairs the stale
or orphaned branch state. Update the remote_exists handling and the later
branch-reuse path so the script first refreshes or reconciles the remote branch
contents/state before creating the PR, using the existing branch-related logic
around remote_exists, branch, and create_pr to keep the remote history
consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c1d43a3c-c414-4842-8f82-f0b154657c04

📥 Commits

Reviewing files that changed from the base of the PR and between 115a8d2 and ca6a2b8.

📒 Files selected for processing (2)
  • .github/dependabot.yml
  • .github/workflows/weblate-pin-bump.yml

Comment thread .github/workflows/weblate-pin-bump.yml Outdated
Comment thread .github/workflows/weblate-pin-bump.yml
Comment thread .github/workflows/weblate-pin-bump.yml Outdated
@henry0816191 henry0816191 requested a review from wpak-ai June 24, 2026 20:02
@wpak-ai wpak-ai merged commit 07ca2ca into cppalliance:develop Jun 24, 2026
10 checks passed
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.

Weblate pin bump workflow: fix orphan-branch PR failure.

3 participants