Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
dlvhdr committed Jan 5, 2024
1 parent 045cbf1 commit e478ec1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ builds:
- env:
- CGO_ENABLED=0
flags:
- nodbus
- -tags=nodbus
goos:
- freebsd
- linux
Expand Down
5 changes: 3 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/log"
"github.com/dlvhdr/gh-dash/ui"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/muesli/termenv"
"github.com/spf13/cobra"

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

var (
Expand Down
6 changes: 3 additions & 3 deletions ui/components/prssection/watchChecks.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ func (m *Model) watchChecks() tea.Cmd {
go func() {
err := c.Wait()
if err != nil {
log.Error("Error waiting for watch command to finish", "err", err)
log.Debug("Error waiting for watch command to finish", "err", err, "stderr", errb.String(), "stdout", outb.String())
}

// TODO: check for installation of terminal-notifier or alternative as logo isn't supported
updatedPr, err := data.FetchPullRequest(url)
if err != nil {
log.Error("Error fetching updated PR details", "url", url, "err", err)
log.Debug("Error fetching updated PR details", "url", url, "err", err)
}

renderedPr := prComponent.PullRequest{Ctx: m.Ctx, Data: updatedPr}
Expand All @@ -74,7 +74,7 @@ func (m *Model) watchChecks() tea.Cmd {
"",
)
if err != nil {
log.Error("Error showing system notification", "err", err)
log.Debug("Error showing system notification", "err", err)
}
}()

Expand Down

0 comments on commit e478ec1

Please sign in to comment.