forked from mattermost/mattermost-plugin-github
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.go
More file actions
46 lines (39 loc) · 1.17 KB
/
constants.go
File metadata and controls
46 lines (39 loc) · 1.17 KB
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
38
39
40
41
42
43
44
45
46
package constants
import "time"
const (
APIErrorIDNotConnected = "not_connected"
// TokenTTL is the OAuth token expiry duration in seconds
TokenTTL = 600
RequestTimeout = 30 * time.Second
OauthCompleteTimeout = 2 * time.Minute
HeaderMattermostUserID = "Mattermost-User-ID"
OwnerQueryParam = "owner"
RepoQueryParam = "repo"
NumberQueryParam = "number"
PostIDQueryParam = "postId"
IssueStatus = "status"
AssigneesForProps = "assignees"
LabelsForProps = "labels"
DescriptionForProps = "description"
TitleForProps = "title"
IssueNumberForProps = "issue_number"
IssueURLForProps = "issue_url"
RepoOwnerForProps = "repo_owner"
RepoNameForProps = "repo_name"
Close = "Close"
Reopen = "Reopen"
IssueCompleted = "completed"
IssueNotPlanned = "not_planned"
IssueClose = "closed"
IssueOpen = "open"
// Actions of webhook events
ActionOpened = "opened"
ActionClosed = "closed"
ActionReopened = "reopened"
ActionSubmitted = "submitted"
ActionLabeled = "labeled"
ActionAssigned = "assigned"
ActionCreated = "created"
ActionDeleted = "deleted"
ActionEdited = "edited"
)