Error type for duplicate project repository conflicts within an organization.
// Source: https://github.com/Untrivial-ai/agent-orchestrator | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package postgres import ( "errors" "fmt" "github.com/jackc/pgx/v5/pgconn" ) // ProjectRepositoryConflictError reports that the caller's organization already // has an active (non-archived) project registered for the same repository, so a // second project for that repository cannot be created. It classifies as // ErrConflict (via Is) so callers that only branch on the error class keep // working, while carrying the repository URL so the API can render a specific, // actionable message instead of the generic conflict string. // // The conflict is strictly within one o ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key