Fix another place with special symbols in the URL

This commit is contained in:
Mikhail f. Shiryaev 2024-01-24 21:02:22 +01:00
parent fddfc7e9c4
commit 3d03c16fc8
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -1,12 +1,12 @@
#!/usr/bin/env python3
from collections import namedtuple
import fnmatch
import json
import time
from collections import namedtuple
from urllib.parse import quote
import requests # type: ignore
from lambda_shared.pr import TRUSTED_CONTRIBUTORS
from lambda_shared.token import get_cached_access_token
@ -129,7 +129,7 @@ def _exec_post_with_retry(url, token, data=None):
def _get_pull_requests_from(repo_url, owner, branch, token):
url = f"{repo_url}/pulls?head={owner}:{branch}"
url = f"{repo_url}/pulls?head={quote(owner)}:{quote(branch)}"
return _exec_get_with_retry(url, token)