Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ USER codeagent
# 设置工作目录
WORKDIR /workspace

# 配置Git safe.directory以解决挂载目录权限问题
RUN git config --global --add safe.directory /workspace
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude 这个配置合适吗?


# 默认命令
CMD ["tail", "-f", "/dev/null"]
4 changes: 0 additions & 4 deletions internal/events/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/qiniu/codeagent/pkg/models"

"github.com/google/go-github/v58/github"
"github.com/qiniu/x/xlog"
)

// EventParser 事件解析器
Expand Down Expand Up @@ -70,9 +69,6 @@ func (p *EventParser) ParseWebhookEvent(
deliveryID string,
payload []byte,
) (models.GitHubContext, error) {
xl := xlog.NewWith(ctx)
xl.Infof("Parsing webhook event: type=%s, delivery_id=%s", eventType, deliveryID)

// 验证事件类型
if !models.IsValidEventType(eventType) {
return nil, fmt.Errorf("unsupported event type: %s", eventType)
Expand Down
3 changes: 0 additions & 3 deletions internal/webhook/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ func (h *Handler) HandleWebhook(w http.ResponseWriter, r *http.Request) {
}

ctx := reqid.NewContext(context.Background(), traceID)
xl := xlog.NewWith(ctx)
xl.Infof("Received webhook event via Enhanced Handler: %s", eventType)

// 5. 使用Enhanced Agent的统一事件处理,传递原始字节数据
go func(eventType string, payload []byte, deliveryID string, traceCtx context.Context) {
traceLog := xlog.NewWith(traceCtx)
Expand Down
Loading