Monorepo for Tangled tangled.org

appview/notify: notify users mentioned on PR comments #739

merged opened by boltless.me targeting master from feat/mentions
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m4jbido5pk22
-24
Interdiff #12 #13
appview/notify/db/db.go

This file has not been changed.

appview/notify/merged_notifier.go

This file has not been changed.

appview/notify/notifier.go

This file has not been changed.

appview/notify/posthog/notifier.go

This file has not been changed.

appview/pages/markup/extension/atlink.go

This file has not been changed.

-24
appview/pages/markup/markdown.go
··· 302 302 return path.Join(rctx.CurrentDir, dst) 303 303 } 304 304 305 - // FindUserMentions returns Set of user handles from given markup soruce. 306 - // It doesn't guarntee unique DIDs 307 - func FindUserMentions(source string) []string { 308 - var ( 309 - mentions []string 310 - mentionsSet = make(map[string]struct{}) 311 - md = NewMarkdown() 312 - sourceBytes = []byte(source) 313 - root = md.Parser().Parse(text.NewReader(sourceBytes)) 314 - ) 315 - ast.Walk(root, func(n ast.Node, entering bool) (ast.WalkStatus, error) { 316 - if entering && n.Kind() == textension.KindAt { 317 - handle := n.(*textension.AtNode).Handle 318 - mentionsSet[handle] = struct{}{} 319 - return ast.WalkSkipChildren, nil 320 - } 321 - return ast.WalkContinue, nil 322 - }) 323 - for handle := range mentionsSet { 324 - mentions = append(mentions, handle) 325 - } 326 - return mentions 327 - } 328 - 329 305 func isAbsoluteUrl(link string) bool { 330 306 parsed, err := url.Parse(link) 331 307 if err != nil {
appview/pulls/pulls.go

This file has not been changed.

History

14 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview/notify: notify users mentioned on PR comments
3/3 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
appview/notify: notify users mentioned on PR comments
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
2/3 failed, 1/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
2/3 failed, 1/3 running
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
3/3 success
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
1/3 failed, 2/3 timeout
expand
expand 0 comments
1 commit
expand
appview/notify: notify users mentioned on PR comments
1/3 failed, 2/3 timeout
expand
expand 0 comments