Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 392 #393

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"github.com/muesli/termenv"
"github.com/spf13/cobra"

"github.com/dlvhdr/gh-dash/ui"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/ui"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion config/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/go-playground/validator/v10"
"gopkg.in/yaml.v2"

"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/utils"
)

const DashDir = "gh-dash"
Expand Down
2 changes: 1 addition & 1 deletion gh-dash.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/dlvhdr/gh-dash/cmd"
"github.com/dlvhdr/gh-dash/v4/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/dlvhdr/gh-dash
module github.com/dlvhdr/gh-dash/v4

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion ui/common/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package common

import (
"github.com/charmbracelet/lipgloss"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/v4/data"
)

func RenderLabels(sidebarWidth int, labels []data.Label, pillStyle lipgloss.Style) string {
Expand Down
4 changes: 2 additions & 2 deletions ui/common/labels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/charmbracelet/lipgloss"
"github.com/stretchr/testify/require"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/common"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion ui/common/repopath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/v4/ui/common"
)

var configPaths = map[string]string{
Expand Down
4 changes: 2 additions & 2 deletions ui/common/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package common
import (
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/theme"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/theme"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions ui/components/footer/footer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/config"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/ui/keys"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/config"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/keys"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type Model struct {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/inputbox/inputbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

type Model struct {
Expand Down
10 changes: 5 additions & 5 deletions ui/components/issue/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"strings"

"github.com/charmbracelet/lipgloss"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components"
"github.com/dlvhdr/gh-dash/ui/components/table"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components"
"github.com/dlvhdr/gh-dash/v4/ui/components/table"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type Issue struct {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/issuesidebar/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/charmbracelet/glamour"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type RenderedActivity struct {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/issuesidebar/assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) assign(usernames []string) tea.Cmd {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/issuesidebar/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

tea "github.com/charmbracelet/bubbletea"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) comment(body string) tea.Cmd {
Expand Down
12 changes: 6 additions & 6 deletions ui/components/issuesidebar/issuesidebar.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/ui/components/inputbox"
"github.com/dlvhdr/gh-dash/ui/components/issue"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/common"
"github.com/dlvhdr/gh-dash/v4/ui/components/inputbox"
"github.com/dlvhdr/gh-dash/v4/ui/components/issue"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
)

type Model struct {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/issuesidebar/unassign.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) unassign(usernames []string) tea.Cmd {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/issuessection/close.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

func (m *Model) close() tea.Cmd {
Expand Down
16 changes: 8 additions & 8 deletions ui/components/issuessection/issuessection.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (

tea "github.com/charmbracelet/bubbletea"

"github.com/dlvhdr/gh-dash/config"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/issue"
"github.com/dlvhdr/gh-dash/ui/components/section"
"github.com/dlvhdr/gh-dash/ui/components/table"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/config"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/issue"
"github.com/dlvhdr/gh-dash/v4/ui/components/section"
"github.com/dlvhdr/gh-dash/v4/ui/components/table"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

const SectionType = "issue"
Expand Down
6 changes: 3 additions & 3 deletions ui/components/issuessection/reopen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

func (m *Model) reopen() tea.Cmd {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/listviewport/listviewport.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/charmbracelet/bubbles/viewport"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type Model struct {
Expand Down
12 changes: 6 additions & 6 deletions ui/components/pr/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (

"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components"
"github.com/dlvhdr/gh-dash/ui/components/table"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components"
"github.com/dlvhdr/gh-dash/v4/ui/components/table"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type PullRequest struct {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package prompt
import (
"github.com/charmbracelet/bubbles/textinput"
tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

type Model struct {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/prsidebar/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/charmbracelet/glamour"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type RenderedActivity struct {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/prsidebar/assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/prssection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/prssection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) assign(usernames []string) tea.Cmd {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/prsidebar/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"

"github.com/charmbracelet/lipgloss"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/v4/data"
)

func (sidebar *Model) renderChecks() string {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/prsidebar/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"time"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/prssection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/prssection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) comment(body string) tea.Cmd {
Expand Down
12 changes: 6 additions & 6 deletions ui/components/prsidebar/prsidebar.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/ui/components/inputbox"
"github.com/dlvhdr/gh-dash/ui/components/pr"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/common"
"github.com/dlvhdr/gh-dash/v4/ui/components/inputbox"
"github.com/dlvhdr/gh-dash/v4/ui/components/pr"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
)

type Model struct {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/prsidebar/unassign.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/prssection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/prssection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) unassign(usernames []string) tea.Cmd {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/prssection/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strings"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/common"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) checkout() (tea.Cmd, error) {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/prssection/close.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

func (m *Model) close() tea.Cmd {
Expand Down
Loading
Loading