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

add release watch subcommand #355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brooksn
Copy link
Contributor

@brooksn brooksn commented Jan 30, 2024

This PR adds a new subcommand watch to the release command.

The user interactively adds Drone builds, GitHub releases or pull requests to add to a list. The list will poll each resource periodically to update its status badge.
When the user adds or removes items, the list is saved to ~/.ecm-distro-tools/watch_list.json

example

Signed-off-by: Brooks Newberry <[email protected]>
@brooksn
Copy link
Contributor Author

brooksn commented Jan 30, 2024

The alias tea for charmbracelet/bubbletea is a convention they introduce in their documentation.

@brooksn
Copy link
Contributor Author

brooksn commented Jan 30, 2024

casette.tape is a script for the gif utility vhs for generating animated terminal images for README files.

@brooksn brooksn mentioned this pull request Jan 30, 2024
if checked {
return lipgloss.NewStyle().Foreground(lipgloss.Color("241")).Render("(•) " + label)
}
return fmt.Sprintf("( ) %s", label)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return fmt.Sprintf("( ) %s", label)
return "( ) " + label

@@ -29,6 +29,7 @@ release push k3s tags v1.29.2
release update k3s references v1.29.2
release tag k3s rc v1.29.2
release tag k3s ga v1.29.2
release watch
Copy link
Member

Choose a reason for hiding this comment

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

Does this take any args?

"golang.org/x/oauth2"
)

func newClient(ctx context.Context, token string) *github.Client {
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this covered by repository.NewGithub?

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.

3 participants