Skip to content

support jira as story tool#211

Draft
ClairePhi wants to merge 1 commit intomainfrom
ClairePhi/pr/211
Draft

support jira as story tool#211
ClairePhi wants to merge 1 commit intomainfrom
ClairePhi/pr/211

Conversation

@ClairePhi
Copy link
Collaborator

No description provided.

func GetStoryTool() string {
// Check new config format first
if viper.IsSet("story.jira.token") {
return "jira"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be a type alias like

type StoryTool string

const StoryTool Jira = "jira"
const StoryTool Linear = "linear"

WDYT? More type safe this way?

return viper.GetString("story.url")
}

func GetStoryToolToken() string {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this take a tool StoryTool as a parameter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments