anthropics / anthropics/claude-code-action

[feat] Allow repo dispatch agent events to be passed an actor rather than assuming via what triggered the dispatch

Đang mở
#835 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
dev-experience enhancement feature-request p2
Ngôn ngữ chính
TypeScript
Star
8.9k
Fork
2.1k
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
10

Mô tả

I saw https://github.com/anthropics/claude-code-action/pull/826 was just merged recently, which broke one of my workflows while pointed at v1.

My workflow uses one workflow to listen for triggers using github actions events, and then creates a repository dispatch with a formatted prompt to the agent in another workflow. I'm using the peter-evans create dispatch action to create it, using the github actions token to create it.

While the intent of that PR was to prevent loops, I find the case of me manually triggering a repository dispatch to be quite rare. Additionally, users who were triggering those workflows via automation and getting into loops (I'm not positive if github actions' max recursion depth applies to repo dispatches or just workflow dispatches) will now also have broken workflows which they will remedy in the mean time by allowing bots back through, potentially re-introducing the usage issue.

It would be nice if (like bot_id and bot_name) we could specify the actor ID as inputs to the action (or in a known place where it can pull it from the client payload) so that even though an automation token triggers it, the actor is evaluated appropriately.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.