Wrap forge-specific API errors into a common error taxonomy. Callers should be able to check for auth errors, not-found, rate limiting, network errors, and internal server errors without knowing which forge they're using.
Something like errors.Is(err, forge.ErrNotFound) should work regardless of whether the underlying error came from GitHub, GitLab, or Gitea.
Wrap forge-specific API errors into a common error taxonomy. Callers should be able to check for auth errors, not-found, rate limiting, network errors, and internal server errors without knowing which forge they're using.
Something like errors.Is(err, forge.ErrNotFound) should work regardless of whether the underlying error came from GitHub, GitLab, or Gitea.