🔥 chore(tui): 删掉会话交接邮箱工单的过滤,交接已改走阿里云 OSS
This commit is contained in:
1 parent
f5d74836a7
commit
335cf9ca9f
1 file changed
-30
@@ -225,35 +225,6 @@ func fetchPRStatus(ctx context.Context, client GiteaClient, owner, repo, prStr s
|
|||||||
// LoadIssues loads all issues assigned to or created by the current user,
|
// LoadIssues loads all issues assigned to or created by the current user,
|
||||||
// resolves state from comment blobs, and enriches with live PR and dependency
|
// resolves state from comment blobs, and enriches with live PR and dependency
|
||||||
// data (skipped for done-column issues).
|
// data (skipped for done-column issues).
|
||||||
const mailboxTitle = "spx-session-mailbox"
|
|
||||||
const mailboxLabel = "spx-session-mailbox"
|
|
||||||
const mailboxMarker = "<!-- spx:session-mailbox -->"
|
|
||||||
|
|
||||||
func isMailboxIssue(iss gitea.Issue) bool {
|
|
||||||
if iss.Title == mailboxTitle {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
if strings.Contains(iss.Body, mailboxMarker) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
for _, l := range iss.Labels {
|
|
||||||
if l.Name == mailboxLabel {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
func filterMailboxIssues(issues []gitea.Issue) []gitea.Issue {
|
|
||||||
out := issues[:0]
|
|
||||||
for _, iss := range issues {
|
|
||||||
if !isMailboxIssue(iss) {
|
|
||||||
out = append(out, iss)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
func LoadIssues(ctx context.Context, client GiteaClient, owner, repo, workspaceRoot string) ([]Issue, error) {
|
func LoadIssues(ctx context.Context, client GiteaClient, owner, repo, workspaceRoot string) ([]Issue, error) {
|
||||||
// Kick off user + repo-wide comments in parallel.
|
// Kick off user + repo-wide comments in parallel.
|
||||||
userCh := make(chan *gitea.User, 1)
|
userCh := make(chan *gitea.User, 1)
|
||||||
@@ -320,7 +291,6 @@ func LoadIssues(ctx context.Context, client GiteaClient, owner, repo, workspaceR
|
|||||||
}
|
}
|
||||||
|
|
||||||
issues := mergeIssues(assigned, created)
|
issues := mergeIssues(assigned, created)
|
||||||
issues = filterMailboxIssues(issues)
|
|
||||||
buckets := groupComments(allComments)
|
buckets := groupComments(allComments)
|
||||||
|
|
||||||
// Pre-compute columns to decide which issues need live PR/deps queries.
|
// Pre-compute columns to decide which issues need live PR/deps queries.
|
||||||
|
|||||||
Reference in new issue
Block a user