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

feat(bat): add autoUpdate function to fetch latest version from GitHub #222

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

jaudiger
Copy link
Contributor

Just add the autoUpdate function for brioche-dev/brioche#165.

const src = std.file(std.indoc`
let version = http get https://api.github.com/repos/sharkdp/bat/releases/latest
| get tag_name
| str substring 1..
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was necessary to remove the 'v' behind the actual package version.

@asheliahut asheliahut merged commit 3269842 into brioche-dev:main Jan 30, 2025
3 checks passed
@jaudiger jaudiger deleted the bat-auto-update branch January 30, 2025 07:05
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