Skip to content

pre_ship hooks support #68

@erishforG

Description

@erishforG

Summary

There is no way to automatically run lint/format checks before shipping. When cargo fmt fails in CI, an additional commit + push cycle is needed.

Proposed Solution

Add pre_ship hooks in config.toml:

[hooks]
pre_ship = ["cargo fmt --check", "cargo clippy"]

On failure, abort ship with error output. --skip-hooks flag to bypass.

Context

After ship, CI failed on cargo fmt → had to re-checkout branch → fix formatting → push additional commit

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions