Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
492 B
Go
19 lines
492 B
Go
package graph
|
|
|
|
import (
|
|
"adam-french.co.uk/backend/graph/model"
|
|
"adam-french.co.uk/backend/services"
|
|
)
|
|
|
|
// mapGiteaFeed requires a non-nil feed.
|
|
func mapGiteaFeed(feed *services.GiteaFeedResponse) *model.GiteaFeedItem {
|
|
return &model.GiteaFeedItem{
|
|
AvatarURL: feed.ActUser.AvatarURL,
|
|
RepoURL: feed.Repo.HTMLURL,
|
|
RepoName: feed.Repo.FullName,
|
|
OpType: feed.OpType,
|
|
CommitMessage: services.ParseCommitMessage(feed.Content),
|
|
CreatedAt: feed.Created,
|
|
}
|
|
}
|