Skip to content

Commit b94b42a

Browse files
BigCat20196msyyc
andauthored
[Release issue status] Fix bug: /in URL was escaped to %2F (Azure#23877)
* add assignee * update function * fix bug * delete old code * fix bug * fix bug * fix pipeline id * fix auto-ask-check bug * update sdk administrators * fix utils * Set up CI with Azure Pipelines [skip ci] * Update release_issue_status.yml for Azure Pipelines * Update release_issue_status.yml for Azure Pipelines * Update release_issue_status.yml for Azure Pipelines * Update main.py * Update main.py * Update main.py * urldecode * test * test * test * Update reply_generator.py Co-authored-by: Yuchao Yan <[email protected]>
1 parent 7539fc3 commit b94b42a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/release_issue_status/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import re
55
import logging
6+
import urllib.parse
67

78
from azure.devops.v6_0.pipelines.pipelines_client import PipelinesClient
89
from azure.devops.v6_0.pipelines import models
@@ -75,7 +76,7 @@ def _get_pkname_and_readme_link(rest_repo, link, issue_info):
7576

7677
pk_url_name = set()
7778
for pr_changed_file in pr_info.get_files():
78-
contents_url = pr_changed_file.contents_url
79+
contents_url = urllib.parse.unquote(pr_changed_file.contents_url)
7980
if '/resource-manager' in contents_url:
8081
try:
8182
pk_url_name.add(re.findall(r'/specification/(.*?)/resource-manager/', contents_url)[0])

0 commit comments

Comments
 (0)