Skip to content

Add issue status, issue create#53

Merged
mislav merged 8 commits intomasterfrom
issue-status-view
Nov 8, 2019
Merged

Add issue status, issue create#53
mislav merged 8 commits intomasterfrom
issue-status-view

Conversation

@mislav
Copy link
Copy Markdown
Contributor

@mislav mislav commented Nov 6, 2019

var issueCreateCmd = &cobra.Command{
Use: "create",
Short: "Create a new issue",
RunE: issueCreate,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does it make sense to move these into the init function because they are only used in the init function?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You mean vars like issueCreateCmd? They might be only used in init for now, but tests might need to access them too, so that's why I think it's best to keep them at package-level.

}

return result.Repository.Id, nil
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pulling this into a separate file is a wonderful idea. Makes it easier to read and maintain 💯

@mislav mislav merged commit 3b3c5b9 into master Nov 8, 2019
@mislav mislav deleted the issue-status-view branch November 8, 2019 14:24
mislav pushed a commit that referenced this pull request Sep 28, 2021
Liveshare client upgrade to v0.6.0
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