Skip to content

v5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Sep 05:17
· 30 commits to main since this release
9437ed7

BREAKING CHANGES

  • When a field could not be found, the message on the
    thrown error looked like this

    [github-project] "NOPE" could not be matched with any of the existing
    field names: "Title", "Assignees", "Status", "Labels", "Linked pull
    requests", "Reviewers", "Repository", "Milestone", "Text", "Number",
    "Date", "Single select", "Iteration". If the field should be considered
    optional, then set it to "nope: { name: "NOPE", optional: true}

    it is now

    Project field cannot be found

    The original message can still be retrieved using
    error.toHumanMessage()

  • When a user value cannot be matched with a field
    option, the message on the thrown error looked like this

    [github-project] "unknown" is an invalid option for "Single select"

    it is now

    Project field option cannot be found

    The original message can still be retrieved using
    error.toHumanMessage()

  • if a user tried to update a read-only field, the
    message on the thrown error looked like this

    [github-project] Cannot update read-only fields: "Assignees"
    (.assignees)

    it is now

    Project read-only field cannot be updated

Features

  • GitHubProjectError
  • GitHubProjectUnknownFieldError
  • GitHubProjectUnknownFieldOptionError
  • GitHubProjectUpdateReadOnlyFieldError

(#132) (9437ed7)