-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.go
23 lines (18 loc) · 810 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package githubjirabridge
import "os"
var (
jiraApiURL = os.Getenv("JIRA_API_URL")
jiraUsername = os.Getenv("JIRA_USERNAME")
jiraApiToken = os.Getenv("JIRA_API_TOKEN")
jiraProjectKey = os.Getenv("JIRA_PROJECT_KEY")
jiraIssueType = os.Getenv("JIRA_ISSUE_TYPE")
jiraWebhookToken = os.Getenv("JIRA_WEBHOOK_TOKEN")
// Must have repo scope
githubToken = os.Getenv("GITHUB_API_TOKEN")
githubWebhookSecret = os.Getenv("GITHUB_WEBHOOK_SECRET")
githubTriageLabel = os.Getenv("GITHUB_TRIAGE_LABEL")
triagedIssueJiraLabel = os.Getenv("TRIAGED_ISSUE_JIRA_LABEL")
// Format: jiraStatus1:githubLabel1,jiraStatus2:githubLabel2
// Example: "To Do:status/todo,In Progress:status/in-progress"
jiraStatusChangeToGithubLabels = os.Getenv("JIRA_STATUS_CHANGE_TO_GITHUB_LABEL_MAPPINGS")
)