Skip to content

Truncate PR title when searching for existing issue #34

@awly

Description

@awly

check := fmt.Sprintf("%s in:title repo:%s/%s author:app/%s", title, args.org,
creates an API query including the PR title.
We need to

  1. escape the title in the query to avoid producing fake results
  2. truncate the title to avoid hitting query size limits https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#limitations-on-query-length

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions