forked from jpoehls/go-conduit
/
differential_query.go
37 lines (31 loc) · 1.42 KB
/
differential_query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package constants
// DifferentialQueryCommitHashType are the commit types.
type DifferentialQueryCommitHashType string
const (
// DifferentialQueryGitCommit is a git commit.
DifferentialQueryGitCommit DifferentialQueryCommitHashType = "gtcm"
// DifferentialQueryGitTr is something.
DifferentialQueryGitTr DifferentialQueryCommitHashType = "gttr"
// DifferentialQueryHGCommit is a mercurial commit.
DifferentialQueryHGCommit DifferentialQueryCommitHashType = "hgcm"
)
// DifferentialStatus is the status of a differential revision.
type DifferentialStatus string
const (
// DifferentialStatusAny is any status.
DifferentialStatusAny DifferentialStatus = "status-any"
// DifferentialStatusOpen is any revision that is open.
DifferentialStatusOpen DifferentialStatus = "status-open"
// DifferentialStatusAccepted is any revision that is accepted.
DifferentialStatusAccepted DifferentialStatus = "status-accepted"
// DifferentialStatusClosed is any revision that is closed.
DifferentialStatusClosed DifferentialStatus = "status-closed"
)
// DifferentialQueryOrder is the order in which query results cna be ordered.
type DifferentialQueryOrder string
const (
// DifferentialQueryOrderModified orders results by date modified.
DifferentialQueryOrderModified DifferentialQueryOrder = "order-modified"
// DifferentialQueryOrderCreated orders results by date created.
DifferentialQueryOrderCreated DifferentialQueryOrder = "order-created"
)