Monorepo for Tangled tangled.org

appview: repo: implement generating feed #476

merged opened by ptr.pet targeting master from [deleted fork]: repo-feed
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:dfl62fgb7wtjj3fcbb72naae/sh.tangled.repo.pull/3lw7rerhbqm22
+4 -2
Interdiff #0 โ†’ #1
+4 -2
appview/repo/repo.go
··· 271 271 } 272 272 273 273 func (rp *Repo) getRepoFeed(ctx context.Context, f *reporesolver.ResolvedRepo) (*feeds.Feed, error) { 274 - pulls, err := db.GetAnyPulls(rp.db, f.RepoAt, 100) 274 + const feedLimitPerType = 100 275 + 276 + pulls, err := db.GetAnyPulls(rp.db, f.RepoAt, feedLimitPerType) 275 277 if err != nil { 276 278 return nil, err 277 279 } 278 280 279 - issues, err := db.GetAnyIssues(rp.db, f.RepoAt, 100) 281 + issues, err := db.GetAnyIssues(rp.db, f.RepoAt, feedLimitPerType) 280 282 if err != nil { 281 283 return nil, err 282 284 }
appview/repo/router.go

This file has not been changed.

History

5 rounds 4 comments
sign up or login to add to the discussion
1 commit
expand
bd1694e2
appview: repo: implement generating feed
expand 1 comment

including submissions in the feed now aswell

pull request successfully merged
1 commit
expand
7e9f0eea
appview: repo: implement generating feed
expand 0 comments
1 commit
expand
2851773b
appview: repo: implement generating feed
expand 0 comments
1 commit
expand
381c1840
appview: repo: implement generating feed
expand 2 comments

for the feed title, can we change it to be of the format [Issue] <Issue Title> and [PR] <Pull title>?

made the title that, moved the existing one as description

ptr.pet submitted #0
1 commit
expand
aea5b04f
appview: repo: implement generating feed
expand 1 comment

this is pretty simple for now (only puts pull and issue creation in), like the profile timeline since i assume this could use the same code as notifications code later for keeping track of pulls / issues being closed etc etc