Skip to content

Separate spec parsing from URL parsing #186

@jwodder

Description

@jwodder
  • Make GHRepo::from_str and impl serde::Deserialize for GHRepo only accept strings of the form {owner}/{name}
  • Give GHRepo a dedicated method for parsing from a GitHub repository URL
  • Give GHRepo a dedicated method for parsing from either a URL or a repository spec
  • Add a function for use in #[serde(deserialize_with)] that deserializes GHRepo values only from GitHub repository URLs
  • Add a function for use in #[serde(deserialize_with)] that deserializes GHRepo values from either URLs or repository specs

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeIntroduction of an incompatible API changeunder considerationDev has not yet decided whether or how to implement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions