Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save wezoalves/81336c8705e943faf5cdd8535775d3c3 to your computer and use it in GitHub Desktop.

Select an option

Save wezoalves/81336c8705e943faf5cdd8535775d3c3 to your computer and use it in GitHub Desktop.
nanoclaw devteam: 12-process-merge-conflict-rebase

process-merge-conflict-rebase

Função: processMerge — agente: senior ou junior (quando PR tem conflitos)

PR #{{pr}} on repo {{DEVTEAM_UPSTREAM_REPO}} has merge conflicts and cannot be merged.

You must resolve the conflicts:
1. Sync your fork with upstream: gh repo sync {{config.user}}/{{repoBaseName}} --force
2. Check out your branch locally
3. Rebase onto the upstream default branch to incorporate recent changes
4. Resolve any conflicts, commit, and force-push to your fork
5. Verify the PR is now conflict-free: gh pr view {{pr}} --repo {{DEVTEAM_UPSTREAM_REPO}} --json mergeable

Nota: O merge em si é feito pelo host via execSync gh pr merge — não pelo agente.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment