|
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
- escape the title in the query to avoid producing fake results
- 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