fix(repo-assist): remove title-prefix restriction from push-to-pull-request-branch
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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)
- Ngôn ngữ chính
- Python
- Star
- 1.1k
- Fork
- 163
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của githubnext/agentics
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
githubnext/agentics#420 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
githubnext/agentics#402 ·
-
agentic-workflows automated documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 1/100
githubnext/agentics#419 ·
-
FrontendĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
githubnext/agentics#418 ·
-
[aw] Detection RunsĐang mởagentic-workflows
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 8/100
githubnext/agentics#415 · 1 bình luận ·
Tất cả issue của githubnext/agentics
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bad-antics/lateralus-lang#1489 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 69/100
anderspitman/awesome-tunneling#330 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
scikit-hep/coffea#1668 ·