Receber por email
← Voltar para o catálogo

pull-request:update

Update a pull request or merge request body to reflect the current state of changes. Use when a PR/MR has evolved through additional commits and the body needs to reflect what will be merged.

15estrelas
Atualizado há 3 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add bendrucker/claude

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/pull-request-update/svg)](https://www.skillteca.com.br/skills/pull-request-update)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Update Pull Request

The PR body documents what will happen when merged, not the journey. Don't echo review feedback. Only mention changes if the ultimate result is user-facing.

Arguments

$0 (optional): the PR/MR to update, given as a URL, number, or branch name. The Workflow passes it to gh pr view/glab mr view. Default: with no argument, the tools resolve the PR/MR from the current branch.

Context

  • Remote URL: !git remote get-url origin
  • PR Template: !bun ${CLAUDE_PLUGIN_ROOT}/scripts/pr-template.ts

!bun ${CLAUDE_PLUGIN_ROOT}/scripts/git-context.ts

!bun ${CLAUDE_PLUGIN_ROOT}/scripts/contributing.ts

Workflow

  1. Fetch PR context: Use $0 (if provided) as a PR identifier (number or branch name). Fetch the current PR:
  2. GitHub: gh pr view $0 --json title,body,updatedAt,commits
  3. GitLab: glab mr view $0
  4. Fetch PR diff:
  5. GitHub: gh pr diff $0
  6. GitLab: glab mr diff $0

Analysis

  1. Filter commits after updatedAt to identify new work since the body was last written.
  2. Analyze the changes introduced by those commits.

Writing

  1. Rewrite the PR body following the same rules as the create skill. Lead with intent and the decisions a reviewer can't read off the diff, default to prose, and add ## sections only when length earns them. Load the writing skill for the full set of tropes to avoid. If a PR template is provided in context, preserve its structure. See [sections.md](../create/sections.md) for the body guidance.
  2. Write the updated body to a temp file (e.g., tmp/pr-body-<branch>.md) and apply:
  3. GitHub: gh pr edit --body-file tmp/pr-body-<branch>.md
  4. GitLab: glab mr update --description "$(cat tmp/pr-body-<branch>.md)"

GitLab Notes

For advanced GitLab features (stacking, username lookup), load gitlab:merge-request.

Compartilhar X LinkedIn