feat(cli): Enable switching between release types when not specifying a version #71
Annotations
11 warnings
Clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Clippy
clippy-action doesn't have permissions to view Check Runs, disabling!
|
Clippy
Resource not accessible by integration
|
the `Err`-variant returned from this function is very large:
src/lib.rs#L12
warning: the `Err`-variant returned from this function is very large
--> src/cli_config.rs:12:63
|
12 | pub fn adjust_config(config_subcommand: ConfigSubcommands) -> Result<(), errors::CLIError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:10:5
|
10 | AddError(#[from] AddError),
| -------------------------- the variant `AddError` contains at least 128 bytes
11 | #[error("failed to create pr: {0}")]
12 | CreateError(#[from] CreateError),
| -------------------------------- the largest variant contains at least 136 bytes
13 | #[error("failed to initialize the changelog settings: {0}")]
14 | InitError(#[from] InitError),
| ---------------------------- the variant `InitError` contains at least 128 bytes
|
= help: try reducing the size of `errors::CLIError`, for example by boxing large elements or replacing it with `Box<errors::CLIError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `#[warn(clippy::result_large_err)]` on by default
|
the `Err`-variant returned from this function is very large:
src/lib.rs#L20
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:20:62
|
20 | pub fn extract_pr_info(config: &Config, pr: &PullRequest) -> Result<PRInfo, GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:122:5
|
122 | GitHub(#[from] octocrab::Error),
| ------------------------------- the largest variant contains at least 128 bytes
|
= help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/lib.rs#L62
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:62:45
|
62 | pub fn get_authenticated_github_client() -> Result<Octocrab, GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:122:5
|
122 | GitHub(#[from] octocrab::Error),
| ------------------------------- the largest variant contains at least 128 bytes
|
= help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
match can be simplified with `.unwrap_or_default()`:
src/lib.rs#L73
warning: match can be simplified with `.unwrap_or_default()`
--> src/github.rs:73:20
|
73 | let octocrab = match get_authenticated_github_client() {
| ____________________^
74 | | Ok(oc) => oc,
75 | | _ => octocrab::Octocrab::default(),
76 | | };
| |_____^ help: replace it with: `get_authenticated_github_client().unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
= note: `#[warn(clippy::manual_unwrap_or_default)]` on by default
|
the `Err`-variant returned from this function is very large:
src/lib.rs#L101
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:101:34
|
101 | fn get_current_local_branch() -> Result<String, GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:122:5
|
122 | GitHub(#[from] octocrab::Error),
| ------------------------------- the largest variant contains at least 128 bytes
|
= help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/lib.rs#L114
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:114:24
|
114 | pub fn get_origin() -> Result<String, GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:122:5
|
122 | GitHub(#[from] octocrab::Error),
| ------------------------------- the largest variant contains at least 128 bytes
|
= help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/lib.rs#L144
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:144:41
|
144 | pub fn get_git_info(config: &Config) -> Result<GitInfo, GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:122:5
|
122 | GitHub(#[from] octocrab::Error),
| ------------------------------- the largest variant contains at least 128 bytes
|
= help: try reducing the size of `errors::GitHubError`, for example by boxing large elements or replacing it with `Box<errors::GitHubError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
src/lib.rs#L9
warning: the `Err`-variant returned from this function is very large
--> src/init.rs:9:17
|
9 | pub fn run() -> Result<(), InitError> {
| ^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:78:5
|
78 | OriginError(#[from] GitHubError),
| -------------------------------- the largest variant contains at least 128 bytes
|
= help: try reducing the size of `errors::InitError`, for example by boxing large elements or replacing it with `Box<errors::InitError>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|