-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.go
31 lines (27 loc) · 1.03 KB
/
const.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
package main
// constant statuses of messages in queue
const (
// https://docs.atlassian.com/software/jira/docs/api/REST/8.2.0/
///rest/api/2/project/{projectIdOrKey}/statuses
// jiraRestBranchPrefix = "/tree"
gitLabBranchPrefix = "/tree"
jiraRestSuffixRemoteLink = "/remotelink"
jiraRestSuffixTransitions = "/transitions"
jiraRestBaseProjectURI = "/rest/api/2/project"
jiraRestBaseIssueURI = "/rest/api/2/issue"
jiraRemoteLinkCreatedID = "1"
jiraRemoteLinkApprovedID = "2"
jiraRemoteLinkTestsPassedID = "3"
jiraRemoteLinkMergedRequestID = "4"
jiraObjectKindPush = "push"
jiraObjectKindPipeline = "pipeline"
jiraObjectKindBuild = "build"
jiraObjectKindMergeRequest = "merge_request"
jiraObjectKindMerged = "merged"
maxAttempts = 30
gitLabLogo = "/img/gitlab.png"
gitLabZeroCommit = "0000000000000000000000000000000000000000"
envJiraHost = "JIRA_URL"
envJiraUser = "JIRA_USER"
envJiraPassword = "JIRA_PASSWORD"
)