forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
Monorepo for Tangled
fork
Configure Feed
Select the types of activity you want to include in your feed.
1package models
2
3import "tangled.org/core/appview/pagination"
4
5type IssueSearchOptions struct {
6 Keyword string
7 RepoAt string
8 IsOpen bool
9
10 Page pagination.Page
11}
12
13type PullSearchOptions struct {
14 Keyword string
15 RepoAt string
16 State PullState
17
18 Page pagination.Page
19}
20
21// func (so *SearchOptions) ToFilters() []filter {
22// var filters []filter
23// if so.IsOpen != nil {
24// openValue := 0
25// if *so.IsOpen {
26// openValue = 1
27// }
28// filters = append(filters, FilterEq("open", openValue))
29// }
30// return filters
31// }