Skip to content

Commit ecc852e

Browse files
BigCat20196msyycRAY-316
authored
[Release helper] fix bug: Fix bug: /in URL was escaped to %2F (Azure#23899)
* update for Go * check tag consistency and optize reply * add write.md * update go js readme * update * Update common.py * Update common.py * update assignee for JS * update * update * Update common.py * Update common.py * Update release_helper.yml for Azure Pipelines * Update common.py * update * Update common.py * Update common.py * Update main.py * update * update bot advice * update * update * update excel * update output function * add exception handle for bad credential * fix static varaible in class * update auto_assignee algorithm * update bot token to have a try * update bot token * force to single process * test * test * test * test * fix bug * fix * update release_helper/js * update release_helper/js * fix bug * update release helper * Update js.py * Update js.py * Update js.py * urldecode * format Co-authored-by: msyyc <[email protected]> Co-authored-by: Zed <[email protected]> Co-authored-by: Yiming Lei <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent 93d6941 commit ecc852e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

scripts/release_helper/common.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
from datetime import date, datetime
2-
from typing import Set, List, Dict
31
import os
4-
from utils import IssuePackage, REQUEST_REPO, AUTO_ASSIGN_LABEL, AUTO_PARSE_LABEL, get_origin_link_and_tag,\
5-
MULTI_LINK_LABEL
62
import re
73
import logging
84
import time
5+
import urllib.parse
6+
from datetime import date, datetime
7+
from typing import Set, List, Dict
98
from random import randint
9+
1010
from github import Github
1111
from github.Repository import Repository
1212

13+
from utils import IssuePackage, REQUEST_REPO, AUTO_ASSIGN_LABEL, AUTO_PARSE_LABEL, get_origin_link_and_tag,\
14+
MULTI_LINK_LABEL
15+
1316
_LOG = logging.getLogger(__name__)
1417

1518
# assignee dict which will be assigned to handle issues
@@ -79,7 +82,7 @@ def get_readme_from_pr_link(self, link: str) -> str:
7982
pr_info = self.issue_package.rest_repo.get_pull(number=pr_number)
8083
pk_url_name = set()
8184
for pr_changed_file in pr_info.get_files():
82-
contents_url = pr_changed_file.contents_url
85+
contents_url = urllib.parse.unquote(pr_changed_file.contents_url)
8386
if '/resource-manager' not in contents_url:
8487
continue
8588
try:

0 commit comments

Comments
 (0)