fix: Adiciona action de diagnóstico de PRs com commits depois do rebase de ajuste da main.#424
Merged
Merged
Conversation
…se de ajuste da main. Co-authored-by: Lucas Martins <lucasmartinsgabriel@gmail.com>
|
roddas
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Descrição
Adiciona um workflow de diagnóstico para PRs que ficaram com histórico divergente após reescrita/force-push da
main.O workflow identifica PRs abertos com divergência anômala, classifica o histórico como
normal,linear,contaminatedoumanual, e publica comentários com comandos de correção assistida quando necessário. A automação não executa código dos PRs e não faz push/reescrita automática de branches.Tipo de mudança
Issues relacionadas
Closes #385
Domínio de revisão
Como testar / validar
Validação local executada:
Também foram testadas localmente as heurísticas do workflow em PRs abertos do repositório oficial, incluindo casos:
normal: PRs sem divergência anômala, sem comentário por padrão;linear: PRs corrigíveis porgit rebase --onto;contaminated: PRs com histórico contaminado por merges/commits herdados, com orientação manual segura.Foram simulados rebases locais em PRs lineares, sem push, confirmando contagens finais esperadas como
0 1,0 2e0 3.Evidências
.github/workflows/diagnose-rebase-pr.yaml.contents: readpull-requests: readissues: writeworkflow_dispatchcompr_number=alle pula PRs classificados comonormalpor padrão.Checklist
upstream/mainouorigin/main