AnswerDotAI / AnswerDotAI/ghapi
search query encoding not working
Open
- Dominant language
- Python
- Stars
- 685
- Forks
- 70
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
This works
```
curl -v \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GH_ENTERPRISE_TOKEN" \
https://$GH_HOST/api/v3/search/issues\?q\=repo:$REPO_NAME+state:open\&per_page=30\&page=
```
This does not
```
from ghapi.all import *
api = GhApi()
paged(api.search.issues_and_pull_requests, q="repo: state:open')
```
For debug log `debug=print_summary`
```
https:///api/v3/search/issues?q=repo%3A%2F+state%3Aopen&per_page=30&page=1
```
See : was replaced with %3A. This I think is what breaks the query, some uri/url encoding happening somewhere
Contributor guide
Assessment
This issue has not been assessed yet.