Skip to content

Add manual intervention guide to README#8

Open
kaovilai wants to merge 1 commit intooadp-rebasebot:oadp-devfrom
kaovilai:readme-manual-intervention-guide
Open

Add manual intervention guide to README#8
kaovilai wants to merge 1 commit intooadp-rebasebot:oadp-devfrom
kaovilai:readme-manual-intervention-guide

Conversation

@kaovilai
Copy link
Contributor

@kaovilai kaovilai commented Feb 19, 2026

Summary

  • Documents the workflow for resolving rebasebot failures when --conflict-policy strict detects upstream content loss during cherry-picking of old merge commits
  • Uses local hook scripts from rebasebot-hook-scripts/ rather than curling from GitHub
  • Generalized with placeholders so it applies to any repository and branch

Test plan

  • Review the guide steps against the actual manual intervention workflow performed for velero-plugin-for-gcp
  • Verify hook script paths are correct relative to .rebase/ working directory

Note

Responses generated with Claude

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive Manual Intervention Guide explaining how to handle and resolve conflicts encountered when using rebasebot with strict conflict policy, including detailed step-by-step troubleshooting workflows, practical environment configuration examples, hook script samples, repository-specific setup instructions, and resolution tips.

Document the workflow for resolving rebasebot failures when
--conflict-policy strict detects upstream content loss during
cherry-picking of old merge commits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 19, 2026 18:17
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

This PR adds comprehensive documentation for manual intervention when the rebasebot encounters conflicts during cherry-picking operations. The guide explains how to recover from situations where --conflict-policy strict detects upstream content loss, typically caused by old merge commits being cherry-picked with -Xtheirs strategy.

Changes:

  • Added "Manual Intervention Guide" section documenting the workflow for resolving rebasebot failures
  • Documented the .rebase/ working directory structure with three configured remotes (source, dest, rebase)
  • Provided step-by-step recovery instructions including how to run hook scripts manually from local checkout
  • Used generalized placeholders (<upstream-branch>, <branch>, <repo>) making the guide applicable to any repository

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mpryc
Copy link
Contributor

mpryc commented Feb 19, 2026

@kaovilai should we wait with this until openshift-eng/rebasebot#78 is merged ?

@kaovilai
Copy link
Contributor Author

sure

@kaovilai
Copy link
Contributor Author

@coderabbitai full review

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

✅ Actions performed

Full review triggered.

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

📝 Walkthrough

Walkthrough

Added a "Manual Intervention Guide" section to README.md that explains how rebasebot behaves when --conflict-policy strict is enabled, including preserved directory structure, problem analysis, step-by-step resolution workflow, and configuration examples.

Changes

Cohort / File(s) Summary
Documentation
README.md
Added Manual Intervention Guide section detailing conflict handling under strict policy, with workflow steps, environment notes, hook script examples, and authentication guidance. Note: section content appears duplicated across two locations in the file.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A guide for when conflicts arise,
With steps laid out so clear and wise,
The rebasebot's manual way,
Helps merge conflicts see the day! 📚✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add manual intervention guide to README' accurately and directly describes the main change: adding documentation to the README file about manual intervention procedures.
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
  • Post copyable unit tests in a comment

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

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Around line 170-172: The fenced code block containing the line "ERROR - Manual
intervention is needed to rebase <source> into <dest>" is missing a language
tag; update that triple-backtick fence in README.md to include a language
identifier (for example `text` or `bash`) so the block becomes ```text (or
```bash) to satisfy MD040 and remove the markdownlint warning.
- Around line 228-231: The two consecutive blockquote paragraphs starting with
"**Note:** Check the corresponding config..." and "**Note:** After pushing, you
can create a PR..." contain an extra blank line between them which triggers
markdownlint MD028; remove the blank line so the blockquote is contiguous (or
alternatively convert them into two separate blockquote blocks explicitly),
ensuring the two "**Note:**" lines are directly adjacent to satisfy MD028 for
the README content.

Comment on lines +170 to +172
```
ERROR - Manual intervention is needed to rebase <source> into <dest>
```
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add a language to the fenced code block.

Markdownlint flags the code fence as missing a language. Specify a language (e.g., text or bash) to satisfy MD040.

✅ Suggested fix
-```
+```text
 ERROR - Manual intervention is needed to rebase <source> into <dest>
</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion

🧰 Tools
🪛 markdownlint-cli2 (0.21.0)

[warning] 170-170: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 170 - 172, The fenced code block containing the line
"ERROR - Manual intervention is needed to rebase <source> into <dest>" is
missing a language tag; update that triple-backtick fence in README.md to
include a language identifier (for example `text` or `bash`) so the block
becomes ```text (or ```bash) to satisfy MD040 and remove the markdownlint
warning.

Comment on lines +228 to +231
> **Note:** Check the corresponding config in `rebase-configs/` (e.g., `openshift_velero_plugin_for_gcp_oadp-dev.env.sh`) to see which hook scripts are required for each repository and branch.

> **Note:** After pushing, you can create a PR manually from the rebase fork to the downstream repo, or re-run rebasebot — it will detect the existing branch and create/update the PR automatically.

Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove blank lines inside the blockquote.

Markdownlint reports blank lines inside the blockquote (MD028). Keep the blockquote contiguous or split it into separate blockquotes.

✅ Suggested fix
-> **Note:** Check the corresponding config in `rebase-configs/` (e.g., `openshift_velero_plugin_for_gcp_oadp-dev.env.sh`) to see which hook scripts are required for each repository and branch.
-
-> **Note:** After pushing, you can create a PR manually from the rebase fork to the downstream repo, or re-run rebasebot — it will detect the existing branch and create/update the PR automatically.
+> **Note:** Check the corresponding config in `rebase-configs/` (e.g., `openshift_velero_plugin_for_gcp_oadp-dev.env.sh`) to see which hook scripts are required for each repository and branch.
+> **Note:** After pushing, you can create a PR manually from the rebase fork to the downstream repo, or re-run rebasebot — it will detect the existing branch and create/update the PR automatically.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
> **Note:** Check the corresponding config in `rebase-configs/` (e.g., `openshift_velero_plugin_for_gcp_oadp-dev.env.sh`) to see which hook scripts are required for each repository and branch.
> **Note:** After pushing, you can create a PR manually from the rebase fork to the downstream repo, or re-run rebasebot — it will detect the existing branch and create/update the PR automatically.
> **Note:** Check the corresponding config in `rebase-configs/` (e.g., `openshift_velero_plugin_for_gcp_oadp-dev.env.sh`) to see which hook scripts are required for each repository and branch.
> **Note:** After pushing, you can create a PR manually from the rebase fork to the downstream repo, or re-run rebasebot — it will detect the existing branch and create/update the PR automatically.
🧰 Tools
🪛 markdownlint-cli2 (0.21.0)

[warning] 229-229: Blank line inside blockquote

(MD028, no-blanks-blockquote)


[warning] 231-231: Blank line inside blockquote

(MD028, no-blanks-blockquote)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 228 - 231, The two consecutive blockquote paragraphs
starting with "**Note:** Check the corresponding config..." and "**Note:** After
pushing, you can create a PR..." contain an extra blank line between them which
triggers markdownlint MD028; remove the blank line so the blockquote is
contiguous (or alternatively convert them into two separate blockquote blocks
explicitly), ensuring the two "**Note:**" lines are directly adjacent to satisfy
MD028 for the README content.

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.

4 participants