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 dune-relase delegate-info version #495

Merged
merged 2 commits into from
Feb 3, 2025
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
8 changes: 6 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

### Added

- Add `dune-release delegate-info version` to show the current version as infered
by the tool (#495, @samoht)

### Changed

- Use the 'user' option as the fork owner, only attempt to decode the remote URL if the user option is not set. (#480, @Julow)
- Use the 'user' option as the fork owner, only attempt to decode the remote URL
if the user option is not set. (#480, @Julow)

### Deprecated

Expand Down Expand Up @@ -120,7 +124,7 @@
(#248, @gpetiot)
- Add a new command `check` to check the prerequisites of dune-release and
avoid starting a release process that couldn't be finished (#318, #351, @pitag-ha)
- When preparing the opam-repository PR and pushing the local branch to
- When preparing the opam-repository PR and pushing the local branch to
the user's remote opam-repository fork, use `--set-upstream` to ease any further
update of the PR (#350, @gpetiot)

Expand Down
2 changes: 2 additions & 0 deletions bin/delegate_info.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ let run var =
Pkg.distrib_archive_path pkg >>| fun distrib_file ->
Format.printf "%a\n" Fpath.pp distrib_file
| "docdir" -> Ok (Format.printf "%a\n" Fpath.pp Pkg.doc_dir)
| "version" ->
Pkg.version pkg >>| fun v -> Format.printf "%a\n%!" Version.pp v
| "publication-message" ->
Pkg.publish_msg pkg >>| fun msg -> Format.printf "%s\n" msg
| _ -> Rresult.R.error_msgf "Unknown variable %S" var
Expand Down