Skip to content
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ and the repositories that need those dependencies.
This project uses
[`axum`] to handle incoming requests,
[`reqwest`] to send requests to the GitHub API,
[`git ls-remote`] to check the last commit on a remote branch,
[`gix`] to check the latest commit on remote branches,
and [`sqlx`] connected to a SQLite database to hold state.

<!-- LINKS -->
[`axum`]: https://docs.rs/axum/latest/axum/
[`reqwest`]: https://docs.rs/reqwest/latest/reqwest/
[`git ls-remote`]: https://git-scm.com/docs/git-ls-remote
[`gix`]: https://docs.rs/gix/latest/gix/
[`sqlx`]: https://docs.rs/sqlx/latest/sqlx/

## Usage
Expand Down
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions src/polling/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,10 @@ pub enum CommitHashError {
#[error("Validation error: {0}")]
Validation(#[from] ValidationError),

/// I/O error.
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),

/// Unexpected failure while fetching the commit hash.
#[error("Unexpected failure while fetching the commit hash: {0}")]
UnexpectedStatus(String),

/// Unexpected output while fetching the commit hash.
#[error(
"Unexpected output while fetching the commit hash. Repo: {repo_url}; Branch: {branch}; Output: {stdout}"
)]
UnexpectedOutput {
/// The unexpected output text.
stdout: String,
/// The relevant git repository URL.
repo_url: String,
/// The relevant git branch.
branch: String,
},

/// Failed to find remote.
#[error("Failed to find remote: {0}")]
// Error is boxed because it is very large
Expand Down
4 changes: 0 additions & 4 deletions src/trigger/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ impl From<reqwest::Error> for WorkflowTriggerError {
/// Authentication errors.
#[derive(Debug, Error)]
pub enum AuthError {
/// Failed to read PEM file.
#[error("Could not read PEM file: {0}")]
PemFile(#[from] std::io::Error),

/// An error with time APIs.
#[error("System time: {0}")]
Time(#[from] std::time::SystemTimeError),
Expand Down
Loading