Skip to content
Merged
Changes from 197 commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
2c563ff
release_iseus_status_auto_reply
RAY-316 Aug 23, 2021
9603d0f
issue_aoto_close_revert
RAY-316 Aug 23, 2021
133a6a0
Update main.py
RAY-316 Aug 23, 2021
d37ca66
Update main.py
RAY-316 Aug 23, 2021
f5a24c8
Update update_issue_body.py
RAY-316 Aug 23, 2021
590dc3d
Update reply_generator.py
BigCat20196 Aug 23, 2021
0a20a20
Update reply_generator.py
BigCat20196 Aug 24, 2021
1644cf1
Update update_issue_body.py
BigCat20196 Aug 24, 2021
6b1f482
Update main.py
BigCat20196 Aug 24, 2021
fafae8e
Update update_issue_body.py
BigCat20196 Aug 24, 2021
fba944d
Update update_issue_body.py
BigCat20196 Aug 24, 2021
256fb62
Update main.py
BigCat20196 Aug 24, 2021
ff27a87
Update reply_generator.py
RAY-316 Aug 24, 2021
9bbde53
Update main.py
RAY-316 Aug 24, 2021
c065cf7
Update update_issue_body.py
BigCat20196 Aug 25, 2021
80007ac
Update main.py
BigCat20196 Aug 25, 2021
bef41b1
Update scripts/release_issue_status/update_issue_body.py
msyyc Aug 25, 2021
2682c0e
Update update_issue_body.py
BigCat20196 Aug 25, 2021
af36ccc
Update main.py
BigCat20196 Aug 27, 2021
9223146
Update reply_generator.py
BigCat20196 Aug 27, 2021
8ee91fe
Update update_issue_body.py
BigCat20196 Aug 27, 2021
bef133c
Update main.py
BigCat20196 Aug 27, 2021
9dfd084
Update scripts/release_issue_status/main.py
msyyc Aug 27, 2021
51f92fd
Update main.py
msyyc Aug 27, 2021
5259157
Update scripts/release_issue_status/main.py
msyyc Aug 27, 2021
6949bfb
Update scripts/release_issue_status/main.py
msyyc Aug 27, 2021
7b14fd2
Update scripts/release_issue_status/main.py
msyyc Aug 27, 2021
299cfae
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
msyyc Aug 27, 2021
7d3fab8
Update scripts/release_issue_status/update_issue_body.py
msyyc Aug 27, 2021
f07b5b2
Update scripts/release_issue_status/main.py
BigCat20196 Aug 27, 2021
b39342b
Update scripts/release_issue_status/update_issue_body.py
BigCat20196 Aug 27, 2021
44d4de9
Update reply_generator.py
RAY-316 Aug 27, 2021
86b603a
Update main.py
RAY-316 Aug 27, 2021
b9abd0f
Update scripts/release_issue_status/update_issue_body.py
BigCat20196 Aug 30, 2021
7ae26ce
Update scripts/release_issue_status/update_issue_body.py
BigCat20196 Aug 30, 2021
e4b3ed8
Update reply_generator.py
RAY-316 Aug 30, 2021
b587233
Update update_issue_body.py
BigCat20196 Aug 30, 2021
5ca4ac1
Update main.py
BigCat20196 Aug 30, 2021
262d323
Update main.py
BigCat20196 Aug 30, 2021
df737f2
Update update_issue_body.py
BigCat20196 Aug 30, 2021
b792d31
Update main.py
BigCat20196 Aug 30, 2021
c34adbf
Update scripts/release_issue_status/main.py
msyyc Aug 30, 2021
962683e
Update main.py
RAY-316 Aug 30, 2021
b59c2b9
Update reply_generator.py
RAY-316 Aug 30, 2021
91f6827
Update main.py
BigCat20196 Aug 30, 2021
2cbf44a
Update main.py
BigCat20196 Aug 30, 2021
28f1be0
Update main.py
BigCat20196 Aug 30, 2021
9c6adec
Update main.py
BigCat20196 Aug 30, 2021
d021e85
Update main.py
BigCat20196 Aug 30, 2021
9f05d43
Update main.py
BigCat20196 Aug 30, 2021
3a83841
Update main.py
BigCat20196 Aug 31, 2021
05cf904
Update main.py
BigCat20196 Aug 31, 2021
529ed24
Update main.py
BigCat20196 Aug 31, 2021
ad02d86
Update update_issue_body.py
BigCat20196 Aug 31, 2021
d8c9fd2
Update main.py
BigCat20196 Aug 31, 2021
e5fd8a1
Update update_issue_body.py
BigCat20196 Aug 31, 2021
5be276a
Update reply_generator.py
RAY-316 Aug 31, 2021
a49bcde
Update update_issue_body.py
BigCat20196 Aug 31, 2021
cb053b0
Update main.py
RAY-316 Aug 31, 2021
7775550
Update update_issue_body.py
BigCat20196 Aug 31, 2021
4799c39
Update update_issue_body.py
BigCat20196 Aug 31, 2021
c44d538
Update update_issue_body.py
BigCat20196 Aug 31, 2021
963d458
Update update_issue_body.py
BigCat20196 Aug 31, 2021
8134df9
Update update_issue_body.py
BigCat20196 Aug 31, 2021
c710901
Update main.py
BigCat20196 Aug 31, 2021
bc261c9
Update main.py
BigCat20196 Aug 31, 2021
ca1f2e3
Merge branch 'release-issue-status' of https://github.com/msyyc/azure…
BigCat20196 Sep 1, 2021
fa6fa24
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 1, 2021
f53f376
Update main.py
RAY-316 Sep 1, 2021
767620a
Update reply_generator.py
RAY-316 Sep 1, 2021
2b8aab5
Add files via upload
RAY-316 Sep 1, 2021
e03a92d
Update reply_generator.py
RAY-316 Sep 1, 2021
ce5bde7
Update update_issue_body.py
BigCat20196 Sep 1, 2021
984028f
Update reply_generator.py
RAY-316 Sep 1, 2021
5be7416
Update auto_pipeline_run.py
RAY-316 Sep 1, 2021
b952cc8
Update auto_pipeline_run.py
RAY-316 Sep 1, 2021
8b52ed0
add auto-close
BigCat20196 Sep 1, 2021
f9c76f9
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 1, 2021
f6a0b9b
Update auto_close.py
BigCat20196 Sep 1, 2021
ad78829
Update main.py
BigCat20196 Sep 1, 2021
e52fbde
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 1, 2021
8cc6d6a
Update auto_pipeline_run.py
RAY-316 Sep 1, 2021
6b56d8e
fix bug
BigCat20196 Sep 1, 2021
db9fe0d
Merge branch 'release-issue-status' of https://github.com/msyyc/azure…
BigCat20196 Sep 1, 2021
bea9433
Update main.py
BigCat20196 Sep 1, 2021
10dbe82
Update auto_close.py
BigCat20196 Sep 1, 2021
3716dd0
Update auto_close.py
BigCat20196 Sep 2, 2021
94e5764
Update main.py
BigCat20196 Sep 2, 2021
ed82ba7
Update reply_generator.py
RAY-316 Sep 2, 2021
ac890c3
Update main.py
BigCat20196 Sep 2, 2021
2adc725
Update main.py
BigCat20196 Sep 2, 2021
b312aa2
Update auto_close.py
BigCat20196 Sep 2, 2021
bf8f448
Update main.py
BigCat20196 Sep 2, 2021
f65954c
Update auto-close
BigCat20196 Sep 3, 2021
96da96a
Update auto_pipeline_run.py
RAY-316 Sep 6, 2021
683d403
Update update_issue_body.py
BigCat20196 Sep 6, 2021
beca5ff
Update auto_pipeline_run.py
RAY-316 Sep 6, 2021
6508c48
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 6, 2021
662e74f
Update auto_pipeline_run.py
RAY-316 Sep 7, 2021
4b661c6
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 7, 2021
05733eb
Update auto_pipeline_run.py
RAY-316 Sep 7, 2021
7639430
Update auto_pipeline_run.py
RAY-316 Sep 7, 2021
45ef56d
Add pipeline link
BigCat20196 Sep 7, 2021
cf044d6
Update pipeline link
BigCat20196 Sep 7, 2021
a367116
Update auto_pipeline_run.py
BigCat20196 Sep 8, 2021
c9073c9
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 9, 2021
7d74b1d
Update auto_pipeline_run.py
RAY-316 Sep 9, 2021
bfdfd38
Update requirement.txt
RAY-316 Sep 9, 2021
6ebcb7e
Update auto_pipeline_run.py
RAY-316 Sep 9, 2021
a54dd83
Add get_python_pipeline
BigCat20196 Sep 9, 2021
6cadcda
Update auto_pipeline_run.py
RAY-316 Sep 9, 2021
e26e54a
test
BigCat20196 Sep 9, 2021
cdeb1c6
Merge branch 'release-issue-status' of https://github.com/msyyc/azure…
BigCat20196 Sep 9, 2021
57faca1
test
BigCat20196 Sep 9, 2021
8faa0e3
add outputfolder
BigCat20196 Sep 10, 2021
152d689
add label
BigCat20196 Sep 10, 2021
6870777
Update main.py
msyyc Sep 10, 2021
d76eb9f
Update get_python_pipeline.py
BigCat20196 Sep 10, 2021
1f19dd8
Update main.py
BigCat20196 Sep 10, 2021
80b0ec6
Update auto_pipeline_run.py
RAY-316 Sep 10, 2021
9312a5e
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Sep 13, 2021
f33fac4
Add utils
BigCat20196 Sep 13, 2021
5f13043
Update main.py
RAY-316 Sep 13, 2021
d083ef5
Update main.py
RAY-316 Sep 13, 2021
85da7c7
Delete old py
BigCat20196 Sep 13, 2021
a7270dc
Update reply_generator.py
RAY-316 Sep 15, 2021
2ff674d
Update main.py
BigCat20196 Sep 15, 2021
cde8333
Update main.py
BigCat20196 Sep 15, 2021
035d2ee
Update main.py
BigCat20196 Sep 15, 2021
751b323
Update main.py
BigCat20196 Sep 15, 2021
243e9b7
Update main.py
BigCat20196 Sep 15, 2021
c60da40
Update utils.py
BigCat20196 Sep 15, 2021
ed53047
Update utils.py
BigCat20196 Sep 15, 2021
f6ec1e6
Update main.py
BigCat20196 Sep 15, 2021
27b898b
Update main.py
BigCat20196 Sep 15, 2021
d44a0e4
Update reply_generator.py
RAY-316 Sep 16, 2021
7f6df45
Update utils.py
RAY-316 Sep 16, 2021
307da15
Add get_changelog function
BigCat20196 Sep 17, 2021
f286e89
Update utils.py
RAY-316 Sep 17, 2021
f54ca3a
Update reply_generator.py
RAY-316 Sep 17, 2021
d5b2de6
Update main.py
RAY-316 Sep 17, 2021
1a3c450
Update reply_generator.py
RAY-316 Sep 17, 2021
f6d67a9
Update function
BigCat20196 Sep 17, 2021
c9dac64
del useless code
BigCat20196 Sep 17, 2021
222d6b3
Update utils.py
RAY-316 Sep 18, 2021
516a66e
Update main.py
RAY-316 Sep 18, 2021
c201434
Update reply_generator.py
RAY-316 Sep 18, 2021
8d40997
Update main.py
BigCat20196 Sep 22, 2021
cfe6150
Update utils.py
BigCat20196 Sep 26, 2021
f023f90
Update utils.py
BigCat20196 Sep 26, 2021
6aec14f
Update utils.py
BigCat20196 Sep 26, 2021
8685032
Update utils.py
BigCat20196 Sep 26, 2021
138b188
Update reply_generator.py
RAY-316 Sep 26, 2021
5c1bcb4
Update main.py
RAY-316 Sep 26, 2021
50a0e91
Update main.py
RAY-316 Sep 26, 2021
fb5824f
Update main.py
RAY-316 Sep 26, 2021
d3e4506
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 26, 2021
826963a
Update main.py
RAY-316 Sep 26, 2021
5b1c0ec
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 26, 2021
16ced97
Update release_issue_status.yml for Azure Pipelines
RAY-316 Sep 26, 2021
a1ddfae
Update main.py
RAY-316 Sep 26, 2021
c5d56e6
Update utils.py
RAY-316 Sep 26, 2021
7dfddea
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Sep 28, 2021
afbb1de
Update auto-close
BigCat20196 Sep 28, 2021
232e115
Update release_issue_status.yml for Azure Pipelines
BigCat20196 Sep 29, 2021
f63fb17
Update utils.py
RAY-316 Oct 8, 2021
252e16c
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Oct 8, 2021
5ace80b
Update utils.py
RAY-316 Oct 8, 2021
5fc47ab
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Oct 12, 2021
d1fed5b
Fix auto-close bug
BigCat20196 Oct 12, 2021
f29f1f6
Update utils.py
RAY-316 Oct 13, 2021
9afdc53
Update utils.py
RAY-316 Oct 13, 2021
360d8c6
Update utils.py
RAY-316 Oct 13, 2021
541d5b4
Update utils.py
RAY-316 Oct 14, 2021
1994661
Update utils.py
RAY-316 Oct 14, 2021
a064865
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Oct 22, 2021
a314b0c
Merge branch 'release-issue-status' of https://github.com/msyyc/azure…
BigCat20196 Oct 22, 2021
10d8804
Update release_issue_status.yml for Azure Pipelines
BigCat20196 Oct 22, 2021
9f94698
Add assign
BigCat20196 Oct 25, 2021
5a28886
Merge branch 'release-issue-status' of https://github.com/msyyc/azure…
BigCat20196 Oct 25, 2021
085b1c5
Update reply_generator.py
msyyc Oct 25, 2021
dc02062
Update reply_generator.py
msyyc Oct 25, 2021
2163823
Update assignee
BigCat20196 Oct 25, 2021
20367fe
Update assignee
BigCat20196 Oct 25, 2021
c4be21c
Update main.py
msyyc Oct 26, 2021
39eaa62
Merge pull request #14 from Azure/main
RAY-316 Oct 27, 2021
4e12fc1
Update main.py
RAY-316 Oct 27, 2021
bfd21fd
Update main.py
msyyc Oct 27, 2021
d35eb61
Merge pull request #15 from Azure/main
RAY-316 Oct 28, 2021
4f67146
update md
RAY-316 Oct 28, 2021
490e56d
update md
RAY-316 Oct 28, 2021
bbfc62e
update md
RAY-316 Oct 28, 2021
1567ae3
update md
RAY-316 Oct 28, 2021
da32ecf
update md
RAY-316 Oct 29, 2021
1d02954
update md
RAY-316 Oct 29, 2021
82f503e
Merge pull request #18 from Azure/main
RAY-316 Nov 4, 2021
1d7877c
Update main.py
RAY-316 Nov 4, 2021
f3421e6
Update main.py
RAY-316 Nov 4, 2021
3848c98
Update main.py
RAY-316 Nov 4, 2021
6898383
Update main.py
RAY-316 Nov 5, 2021
5ef6985
Update main.py
RAY-316 Nov 5, 2021
1ff70d1
Update main.py
RAY-316 Nov 5, 2021
a04d37b
Update main.py
RAY-316 Nov 5, 2021
53011a5
Update main.py
RAY-316 Nov 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 37 additions & 32 deletions scripts/release_issue_status/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

import reply_generator as rg
from utils import update_issue_body, get_readme_and_output_folder, \
get_python_pipelines, get_pipeline_url, auto_close_issue

get_python_pipelines, get_pipeline_url, auto_close_issue

_NULL = ' '
_FILE_OUT = 'release_issue_status.csv'
Expand All @@ -23,6 +22,7 @@
logging.basicConfig(level=logging.INFO,
format='[auto-reply log] - %(funcName)s[line:%(lineno)d] - %(levelname)s: %(message)s')


def my_print(cmd):
print('==' + cmd + ' ==\n')

Expand All @@ -39,12 +39,13 @@ def output_python_md(issue_status_python):
file_out.write('| ------ | ------ | ------ | ------ | ------ | ------ | ------ | :-----: |\n')
file_out.writelines([item.output_python() for item in sorted(issue_status_python, key=_key_select)])


def output_csv(issue_status):
with open(_FILE_OUT, 'w') as file_out:
file_out.write('language,issue,author,package,created date,delay from created date,latest update time,'
'delay from latest update,status,bot advice\n')
file_out.writelines([item.output() for item in sorted(issue_status, key=_key_select)])


class IssueStatus:
link = _NULL
Expand Down Expand Up @@ -75,7 +76,6 @@ def output(self):
self.delay_from_latest_update,
self.status, self.bot_advice)


def output_python(self):
package = self.package.split('-')[-1]
create_date = str(date.fromtimestamp(self.create_date).strftime('%m-%d'))
Expand All @@ -85,12 +85,13 @@ def output_python(self):
else:
days_from_target = ' '

return '| [#{}]({}) | {} | {} | {} | {} | {} | {} | {} |\n'.format(self.link.split('/')[-1], self.link, self.author,
package, self.assignee, self.bot_advice,
create_date,
target_date,
days_from_target
)
return '| [#{}]({}) | {} | {} | {} | {} | {} | {} | {} |\n'.format(self.link.split('/')[-1], self.link,
self.author,
package, self.assignee, self.bot_advice,
create_date,
target_date,
days_from_target
)


def _extract(str_list, key_word):
Expand Down Expand Up @@ -134,6 +135,7 @@ def _whether_author_comment(comments):
diff = q.difference(_PYTHON_SDK_ADMINISTRATORS)
return len(diff) > 0


def _latest_comment_time(comments, delay_from_create_date):
q = [(comment.updated_at.timestamp(), comment.user.login)
for comment in comments if comment.user.login not in _PYTHON_SDK_ADMINISTRATORS]
Expand All @@ -148,7 +150,8 @@ def auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python
if 'auto-link' not in item.labels:
item.issue_object.add_to_labels('auto-link')
try:
package_name, readme_link, output_folder = update_issue_body(request_repo, rest_repo, item.issue_object.number)
package_name, readme_link, output_folder = update_issue_body(request_repo, rest_repo,
item.issue_object.number)
logging.info("pkname, readme", package_name, readme_link)
item.package = package_name
key = ('Python', item.package)
Expand All @@ -163,7 +166,7 @@ def auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python
readme_link, output_folder = get_readme_and_output_folder(request_repo, rest_repo, item.issue_object.number)
except Exception as e:
logging.info('Issue: {} get pkname and output folder failed'.format(item.issue_object.number))
item.bot_advice = 'failed to find Readme link and output folder. Please check !!'
item.bot_advice = 'failed to find Readme link and output folder! <br>'
item.issue_object.add_to_labels('attention')
logging.info(e)
raise
Expand All @@ -176,7 +179,7 @@ def auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python
if 'Configured' in item.labels:
item.issue_object.remove_from_labels('Configured')
except Exception as e:
item.bot_advice = 'auto reply failed, Please intervene manually !!'
item.bot_advice = 'auto reply failed! <br>'
logging.info('Error from auto reply')
logging.info('Issue:{}'.format(item.issue_object.number))
logging.info(traceback.format_exc())
Expand Down Expand Up @@ -208,7 +211,8 @@ def main():
issue.author = item.user.login
issue.package = _extract(item.body.split('\n'), 'azure-.*')
issue.target_date = [x.split(':')[-1].strip() for x in item.body.split('\n') if 'Target release date' in x][0]
issue.days_from_target = int((time.mktime(time.strptime(issue.target_date, '%Y-%m-%d')) - time.time())/3600/24)
issue.days_from_target = int(
(time.mktime(time.strptime(issue.target_date, '%Y-%m-%d')) - time.time()) / 3600 / 24)
issue.create_date = item.created_at.timestamp()
issue.delay_from_create_date = int((time.time() - item.created_at.timestamp()) / 3600 / 24)
issue.latest_update = item.updated_at.timestamp()
Expand All @@ -223,7 +227,7 @@ def main():
issue.days_from_latest_commit = _latest_comment_time(item.get_comments(), issue.delay_from_create_date)
if item.assignee:
issue.assignee = item.assignee.login

issue_status.append(issue)
key = (issue.language, issue.package)
duplicated_issue[key] = duplicated_issue.get(key, 0) + 1
Expand All @@ -239,51 +243,50 @@ def main():
# rule7: if delay from created date is over 15 days and owner never reply, remind owner to handle it.
for item in issue_status:
if item.language == 'Python':
issue_status_python.append(item)
issue_status_python.append(item)
if item.status == 'release':
item.bot_advice = 'better to release asap.'
elif (item.comment_num == 0 or 'Configured' in item.labels) and 'Python' in item.labels:
item.bot_advice = 'new issue and better to confirm quickly.'
item.bot_advice = 'new issue ! <br>'
if 'assigned' not in item.labels:
time.sleep(0.1)
assign_count = int(str(time.time())[-1]) % len(_PYTHON_SDK_ASSIGNEES)
item.issue_object.remove_from_assignees(item.assignee)
item.issue_object.add_to_assignees(_PYTHON_SDK_ASSIGNEES[assign_count])
item.assignee=item.issue_object.assignee.login
item.assignee = item.issue_object.assignee.login
item.issue_object.add_to_labels('assigned')
try:
auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python_piplines, assigner_repoes)
except Exception as e:
continue
elif not item.author_latest_comment in _PYTHON_SDK_ADMINISTRATORS:
item.bot_advice = 'new comment for author.'
elif item.delay_from_latest_update >= 7:
item.bot_advice = 'delay for a long time '
item.bot_advice = 'new comment for author. <br>'
if item.comment_num > 1 and item.language == 'Python':
try:
auto_close_issue(request_repo, item)
except Exception as e:
item.bot_advice = 'auto-close failed, please check!'
logging.info(f"=====issue: {item.issue_object.number}, {e}")

if 'base-branch-attention' in item.labels:
item.bot_advice = 'new version is 0.0.0, please check base branch! ' + item.bot_advice

if abs(item.days_from_target) < 3:
item.bot_advice += ' release date < 2 ! <br>'
if item.days_from_latest_commit >= 30 and item.language == 'Python' and '30days attention' not in item.labels:
item.issue_object.add_to_labels('30days attention')
item.issue_object.create_comment(f'hi @{item.author}, the issue is closed since there is no reply for a long time. Please reopen it if necessary or create new one.')

if item.days_from_latest_commit >= 15 and item.language == 'Python' and '7days attention' in item.labels and item.days_from_target < 0:
item.issue_object.create_comment(
f'hi @{item.author}, the issue is closed since there is no reply for a long time. Please reopen it if necessary or create new one.')
item.issue_object.edit(state='close')
elif item.days_from_latest_commit >= 15 and item.language == 'Python' and '15days attention' not in item.labels:
item.issue_object.create_comment(f'hi @{item.author}, this release-request has been delayed more than 15 days,'
' please deal with it ASAP. We will close the issue if there is still no response after 15 days!')
item.issue_object.add_to_labels('15days attention')
elif item.days_from_latest_commit >= 7 and item.language == 'Python' and '7days attention' not in item.labels and item.days_from_target < 7:
item.issue_object.create_comment(
f'hi @{item.author}, this release-request has been delayed more than 7 days,'
' please deal with it ASAP. We will close the issue if there is still no response after 7 days!')
item.issue_object.add_to_labels('7days attention')

# judge whether there is duplicated issue for same package
if item.package != _NULL and duplicated_issue.get((item.language, item.package)) > 1:
item.bot_advice = f'duplicated issue for {item.package}. ' + item.bot_advice
item.bot_advice = f'duplicated issue <br>' + item.bot_advice

# output result
output_python_md(issue_status_python)
Expand All @@ -295,11 +298,13 @@ def main():
print_check('git push -f origin HEAD')

# upload to storage account(it is created in advance)


# blob = BlobClient.from_connection_string(conn_str=os.getenv('CONN_STR'), container_name=os.getenv('FILE'),
# blob_name=_FILE_OUT)
# with open(_FILE_OUT, 'rb') as data:
# blob.upload_blob(data, overwrite=True)


if __name__ == '__main__':
main()