feat(cli): Commit and push changelog entry after adding #82
Annotations
11 warnings
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/
|
Run auguwu/[email protected]
clippy-action doesn't have permissions to view Check Runs, disabling!
|
Run auguwu/[email protected]
Resource not accessible by integration
|
Run auguwu/[email protected]:
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
|
Run auguwu/[email protected]:
src/lib.rs#L21
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:21:62
|
21 | pub fn extract_pr_info(config: &Config, pr: &PullRequest) -> Result<PRInfo, GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:126:5
|
126 | 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
|
Run auguwu/[email protected]:
src/lib.rs#L63
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:63:45
|
63 | pub fn get_authenticated_github_client() -> Result<Octocrab, GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:126:5
|
126 | 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
|
Run auguwu/[email protected]:
src/lib.rs#L83
warning: match can be simplified with `.unwrap_or_default()`
--> src/github.rs:83:20
|
83 | let octocrab = match get_authenticated_github_client() {
| ____________________^
84 | | Ok(oc) => oc,
85 | | _ => octocrab::Octocrab::default(),
86 | | };
| |_____^ 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
|
Run auguwu/[email protected]:
src/lib.rs#L111
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:111:34
|
111 | fn get_current_local_branch() -> Result<String, GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:126:5
|
126 | 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
|
Run auguwu/[email protected]:
src/lib.rs#L123
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:123:42
|
123 | pub fn commit_and_push(message: &str) -> Result<(), GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:126:5
|
126 | 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
|
Run auguwu/[email protected]:
src/lib.rs#L135
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:135:18
|
135 | pub fn push() -> Result<(), GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:126:5
|
126 | 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
|
Run auguwu/[email protected]:
src/lib.rs#L147
warning: the `Err`-variant returned from this function is very large
--> src/github.rs:147:45
|
147 | pub fn push_to_origin(branch_name: &str) -> Result<(), GitHubError> {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/errors.rs:126:5
|
126 | 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
|
Loading