A minimum-viable TagBot implementation in Julia!
This project is being actively developed! It works in local testing, and will be made more robust in 2025.
Choose one of the following lines below.
julia> import Pkg; Pkg.add("https://github.com/cadojo/ExperimentalTagBot.jl")
pkg> add https://github.com/cadojo/ExperimentalTagBot.jl
A minimum working example.
This package can use the GitHub API to query Julia's General Registry for a package version's PR, and then create a corresponding GitHub release.
To do this, you'll need to authenticate with the GitHub API.
The simplest way is to install the GitHub CLI and authenticate with the following command: gh auth login
.
The GitHub CLI prompts will guide you through the one-time authentication process.
Once you've authenticated the CLI, you can execute the code below to authenticate with the API.
import GitHub
auth = GitHub.authenticate(readchomp(`gh auth token`))
With this authentication, you can use ExperimentalTagBot
to query Git commits for each registered package version, find registered versions without tags, and create tags for all un-tagged registered package versions.
import ExperimentalTagBot
package = "" # some package you own
ExperimentalTagBot.create_releases(package; auth = auth)