fix(repo-assist): remove title-prefix restriction from push-to-pull-request-branch

Aberta
#321 1 comentário 1 reação 2 responsáveis Ver no GitHub

@dsyme já está trabalhando nisso.

Desde 1/5/2026.

  • #323 de @copilot-swe-agent — fechado sem integrar

Avaliação

Esta issue ainda não foi avaliada.

Descrição

Problem

The repo-assist workflow has title-prefix: "[Repo Assist] " set on its push-to-pull-request-branch safe output:

safe-outputs:
  push-to-pull-request-branch:
    target: "*"
    title-prefix: "[Repo Assist] "
    max: 4

This configuration is self-contradictory. target: "*" says "push to any PR", but title-prefix: "[Repo Assist] " rejects every push to a PR whose title doesn't start with [Repo Assist] — which is every PR not originally created by Repo Assist.

Impact

When a user invokes /repo-assist to fix CI failures, address review comments, or update an open PR created by a human or another workflow, the agent correctly identifies the changes needed, generates the patch, and queues a push_to_pull_request_branch operation. The safe_outputs job then silently rejects it with:

✗ Message 1 (push_to_pull_request_branch) failed: Pull request title "[other-workflow] ..."
  does not start with required prefix "[Repo Assist] "

The user gets no useful feedback, and the fix is never applied.

Root Cause

title-prefix on push-to-pull-request-branch was likely copied from create-pull-request where it makes sense (to namespace PRs Repo Assist creates). On push-to-pull-request-branch it has the opposite effect — it prevents Repo Assist from pushing to PRs it didn't create, which is precisely the on-demand use case.

Fix

Remove title-prefix from push-to-pull-request-branch in workflows/repo-assist.md:

safe-outputs:
  push-to-pull-request-branch:
    target: "*"
    max: 4

title-prefix should remain on create-pull-request where it namespaces new PRs correctly. The max: 4 cap and existing protected-files guardrails already provide the right safety boundary for pushes.


Issue filed by Claude (Anthropic)

Linguagem predominante
Python
Estrelas
1.1k
Forks
163
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de githubnext/agentics

Todas as issues de githubnext/agentics

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.