Compare commits
12 Commits
v0.5.0
...
7e61c5fe83
Author | SHA1 | Date | |
---|---|---|---|
|
7e61c5fe83 | ||
600d8c184c | |||
be27da1712 | |||
87e789d657 | |||
16710ed41b | |||
18bd9e900a | |||
545e8c5476 | |||
42f23fdfac | |||
249a40f1aa | |||
c1187022f2
|
|||
0fc1438a4a
|
|||
166be0c289
|
17
CHANGELOG.md
17
CHANGELOG.md
@@ -6,6 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.6.0] - 2024-12-28
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- removed tests for now
|
||||||
|
- update deps
|
||||||
|
- update
|
||||||
|
|
||||||
|
### Other
|
||||||
|
- *(deps)* update rust crate serde to v1.0.217
|
||||||
|
- *(deps)* update rust crate serde to v1.0.216
|
||||||
|
- *(deps)* update rust crate tracing-subscriber to v0.3.19
|
||||||
|
- *(deps)* update rust crate tracing to v0.1.41
|
||||||
|
- *(deps)* update rust crate serde to v1.0.215
|
||||||
|
- *(deps)* update rust crate serde to v1.0.214
|
||||||
|
- *(deps)* update rust crate serde to v1.0.213
|
||||||
|
- *(deps)* update rust crate serde to v1.0.210
|
||||||
|
|
||||||
## [0.5.0] - 2024-04-09
|
## [0.5.0] - 2024-04-09
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
667
Cargo.lock
generated
667
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -36,4 +36,4 @@ tracing-test = "0.2"
|
|||||||
pretty_assertions = "1.4"
|
pretty_assertions = "1.4"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.5.0"
|
version = "0.6.0"
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
# Cuddle Please
|
# Cuddle Please
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Cuddle Please is an extension to `cuddle`, it is a separate binary that can be executed standalone as `cuddle-please`, or in cuddle as `cuddle please`.
|
Cuddle Please is an extension to `cuddle`, it is a separate binary that can be executed standalone as `cuddle-please`, or in cuddle as `cuddle please`.
|
||||||
|
|
||||||
The goal of the software is to be a `release-please` clone, targeting `gitea` instead of `github`.
|
The goal of the software is to be a `release-please` clone, targeting `gitea` instead of `github`.
|
||||||
|
@@ -91,26 +91,27 @@ impl Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn execute(self, current_dir: Option<&Path>) -> anyhow::Result<()> {
|
pub fn execute(self, current_dir: Option<&Path>) -> anyhow::Result<()> {
|
||||||
match &self.commands {
|
if let Some(c) = &self.commands {
|
||||||
Some(Commands::Release {}) => {
|
match c {
|
||||||
|
Commands::Release {} => {
|
||||||
let (config, git_client, gitea_client, actions) = self.get_deps(current_dir)?;
|
let (config, git_client, gitea_client, actions) = self.get_deps(current_dir)?;
|
||||||
ReleaseCommandHandler::new(self.ui, config, git_client, gitea_client, actions)
|
ReleaseCommandHandler::new(self.ui, config, git_client, gitea_client, actions)
|
||||||
.execute(self.global.dry_run)?;
|
.execute(self.global.dry_run)?;
|
||||||
}
|
}
|
||||||
Some(Commands::Config { command }) => {
|
Commands::Config { command } => {
|
||||||
let (config, _, _, _) = self.get_deps(current_dir)?;
|
let (config, _, _, _) = self.get_deps(current_dir)?;
|
||||||
ConfigCommandHandler::new(self.ui, config).execute(command)?;
|
ConfigCommandHandler::new(self.ui, config).execute(command)?;
|
||||||
}
|
}
|
||||||
Some(Commands::Gitea { command }) => {
|
Commands::Gitea { command } => {
|
||||||
let (config, _, gitea_client, _) = self.get_deps(current_dir)?;
|
let (config, _, gitea_client, _) = self.get_deps(current_dir)?;
|
||||||
|
|
||||||
GiteaCommandHandler::new(self.ui, config, gitea_client)
|
GiteaCommandHandler::new(self.ui, config, gitea_client)
|
||||||
.execute(command, self.global.token.expect("token to be set").deref())?;
|
.execute(command, self.global.token.expect("token to be set").deref())?;
|
||||||
}
|
}
|
||||||
Some(Commands::Doctor {}) => {
|
Commands::Doctor {} => {
|
||||||
DoctorCommandHandler::new(self.ui).execute()?;
|
DoctorCommandHandler::new(self.ui).execute()?;
|
||||||
}
|
}
|
||||||
None => {}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@@ -77,6 +77,8 @@ impl ChangeLogBuilder {
|
|||||||
commit_id: None,
|
commit_id: None,
|
||||||
timestamp,
|
timestamp,
|
||||||
previous: None,
|
previous: None,
|
||||||
|
message: None,
|
||||||
|
repository: None,
|
||||||
},
|
},
|
||||||
config: self.config,
|
config: self.config,
|
||||||
release_link: self.release_link,
|
release_link: self.release_link,
|
||||||
@@ -180,6 +182,7 @@ fn default_commit_parsers() -> Vec<CommitParser> {
|
|||||||
field: None,
|
field: None,
|
||||||
pattern: None,
|
pattern: None,
|
||||||
sha: None,
|
sha: None,
|
||||||
|
footer: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,6 +204,7 @@ fn default_commit_parsers() -> Vec<CommitParser> {
|
|||||||
field: None,
|
field: None,
|
||||||
pattern: None,
|
pattern: None,
|
||||||
sha: None,
|
sha: None,
|
||||||
|
footer: None,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,6 @@ PleaseConfig
|
|||||||
api_url: https://some-example.gitea-instance
|
api_url: https://some-example.gitea-instance
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[traced_test]
|
#[traced_test]
|
||||||
fn test_config_from_current_dir() {
|
fn test_config_from_current_dir() {
|
||||||
let args = get_base_args();
|
let args = get_base_args();
|
||||||
@@ -39,7 +38,6 @@ fn test_config_from_current_dir() {
|
|||||||
assert_output(ui, EXPECTED_OUTPUT, "");
|
assert_output(ui, EXPECTED_OUTPUT, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[traced_test]
|
#[traced_test]
|
||||||
fn test_config_from_source_dir() {
|
fn test_config_from_source_dir() {
|
||||||
let mut args = get_base_args();
|
let mut args = get_base_args();
|
||||||
@@ -55,7 +53,6 @@ fn test_config_from_source_dir() {
|
|||||||
assert_output(ui, EXPECTED_OUTPUT, "");
|
assert_output(ui, EXPECTED_OUTPUT, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[traced_test]
|
#[traced_test]
|
||||||
fn test_config_from_stdin() {
|
fn test_config_from_stdin() {
|
||||||
let mut args = get_base_args();
|
let mut args = get_base_args();
|
||||||
@@ -75,7 +72,6 @@ settings:
|
|||||||
assert_output(ui, EXPECTED_OUTPUT, "");
|
assert_output(ui, EXPECTED_OUTPUT, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[traced_test]
|
#[traced_test]
|
||||||
fn test_config_fails_when_not_path_is_set() {
|
fn test_config_fails_when_not_path_is_set() {
|
||||||
let args = get_base_args();
|
let args = get_base_args();
|
||||||
|
@@ -24,8 +24,10 @@ components:
|
|||||||
debian:
|
debian:
|
||||||
dev:
|
dev:
|
||||||
- jq
|
- jq
|
||||||
|
- git
|
||||||
release:
|
release:
|
||||||
- jq
|
- jq
|
||||||
|
- git
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
"mkdocs:new":
|
"mkdocs:new":
|
||||||
|
Reference in New Issue
Block a user