mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Implement xtask publish-release-notes
to publish release notes on GitHub Releases
This commit is contained in:
parent
0eb537fa31
commit
f06a29f6e1
3 changed files with 97 additions and 0 deletions
|
@ -34,6 +34,13 @@ xflags::xflags! {
|
|||
cmd dist {
|
||||
optional --client-patch-version version: String
|
||||
}
|
||||
/// Read a changelog AsciiDoc file and update the GitHub Releases entry in Markdown.
|
||||
cmd publish-release-notes {
|
||||
/// Only run conversion and show the result.
|
||||
optional --dry-run
|
||||
/// Target changelog file.
|
||||
required changelog: String
|
||||
}
|
||||
cmd metrics {
|
||||
optional --dry-run
|
||||
}
|
||||
|
@ -59,6 +66,7 @@ pub enum XtaskCmd {
|
|||
Release(Release),
|
||||
Promote(Promote),
|
||||
Dist(Dist),
|
||||
PublishReleaseNotes(PublishReleaseNotes),
|
||||
Metrics(Metrics),
|
||||
Bb(Bb),
|
||||
}
|
||||
|
@ -90,6 +98,13 @@ pub struct Dist {
|
|||
pub client_patch_version: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct PublishReleaseNotes {
|
||||
pub changelog: String,
|
||||
|
||||
pub dry_run: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Metrics {
|
||||
pub dry_run: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue