AnswerDotAI / AnswerDotAI/ghapi

search query encoding not working

Open
#149 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.