-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release_iseus_status_auto_reply #20441
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msyyc
commented
Aug 27, 2021
scripts/release_issue_status/main.py
Outdated
Comment on lines
177
to
200
if 'auto-link' not in item.labels: | ||
try: | ||
readme_link = update_issue_body(sdk_repo, rest_repo, item.link) | ||
except Exception as e: | ||
item.bot_advice = 'failed to modify the body of the new issue. Please modify manually' | ||
item.labels.append('attention') | ||
item.labels.append('auto-link') | ||
item.issue_object.set_labels(*item.labels) | ||
else: | ||
try: | ||
readme_link = find_readme_link(sdk_repo, item.issue_object.number) | ||
except Exception as e: | ||
print('Issue: {} updates body failed'.format(item.issue_object.number)) | ||
item.bot_advice = 'failed to find Readme link, Please check !!' | ||
item.labels.append('attention') | ||
continue | ||
try: | ||
reply = rg.begin_reply_generate(issue_object=item.issue_object, rest_repo=rest_repo, readme_link=readme_link) | ||
except Exception as e: | ||
item.bot_advice = 'auto reply failed, Please intervene manually !!' | ||
print('Error from auto reply ========================') | ||
print('Issue:{}'.format(item.issue_object.number)) | ||
print(traceback.format_exc()) | ||
print('==============================================') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract this part as a separate function since it makes the main logic too swollen.
msyyc
commented
Aug 27, 2021
/check-enforcer override |
BigCat20196
approved these changes
Aug 31, 2021
iscai-msft
added a commit
to iscai-msft/azure-sdk-for-python
that referenced
this pull request
Aug 31, 2021
…into switch_to_protocol * 'main' of https://github.com/Azure/azure-sdk-for-python: release_iseus_status_auto_reply (Azure#20441) Clarify LogsQueryClient query parameter description (Azure#20467) Sync eng/common directory with azure-sdk-tools for PR 1953 (Azure#20466) Skip eng common workflow enforcer for private repos (Azure#20462) remove iter_text and iter_lines (Azure#20460)
iscai-msft
added a commit
that referenced
this pull request
Aug 31, 2021
…into header_tuples * 'main' of https://github.com/Azure/azure-sdk-for-python: (21 commits) [Key Vault] Add 7.3-preview support for certificates (#20477) Use dummy values and correct code rendering in README (#20322) Use CredScan-suppressed dummy password in sample (#20468) Fix type annotation in azure.storage.blob (#20084) Adding static checks (#20457) release_iseus_status_auto_reply (#20441) Clarify LogsQueryClient query parameter description (#20467) Sync eng/common directory with azure-sdk-tools for PR 1953 (#20466) Skip eng common workflow enforcer for private repos (#20462) remove iter_text and iter_lines (#20460) [ServiceBus] Improve test stability and cpu usage (#20352) t2-Netapp-update-to-2021-06-01 (#20453) [AutoRelease] t2-keyvault-2021-08-26-55443 (#20423) Sync eng/common directory with azure-sdk-tools for PR 1943 (#20450) New dummy password in README (#20328) ensure test principal creation succeeds properly (#20446) Update question-answering readme links (#20439) Stip empty changelog sections before release (#20437) [AutoRelease] t2-healthcareapis-2021-08-26-27542 (#20422) [AutoRelease] t2-iothub-2021-08-25-25696 (#20409) ...
iscai-msft
added a commit
to iscai-msft/azure-sdk-for-python
that referenced
this pull request
Aug 31, 2021
…into update_lro_paging * 'main' of https://github.com/Azure/azure-sdk-for-python: [Core] Follow RFC 3339 datetime formatting for AzureJSONEncoder (Azure#20346) [Key Vault] Add 7.3-preview support for certificates (Azure#20477) Use dummy values and correct code rendering in README (Azure#20322) Use CredScan-suppressed dummy password in sample (Azure#20468) Fix type annotation in azure.storage.blob (Azure#20084) Adding static checks (Azure#20457) release_iseus_status_auto_reply (Azure#20441) Clarify LogsQueryClient query parameter description (Azure#20467) Sync eng/common directory with azure-sdk-tools for PR 1953 (Azure#20466) Skip eng common workflow enforcer for private repos (Azure#20462) remove iter_text and iter_lines (Azure#20460)
iscai-msft
pushed a commit
that referenced
this pull request
Sep 29, 2021
* release_iseus_status_auto_reply * issue_aoto_close_revert * Update main.py * Update main.py * Update update_issue_body.py * Update reply_generator.py * Update reply_generator.py * Update update_issue_body.py * Update main.py * Update update_issue_body.py * Update update_issue_body.py * Update main.py * Update reply_generator.py * Update main.py * Update update_issue_body.py * Update main.py * Update scripts/release_issue_status/update_issue_body.py * Update update_issue_body.py * Update main.py * Update reply_generator.py * Update update_issue_body.py * Update main.py * Update scripts/release_issue_status/main.py * Update main.py * Update scripts/release_issue_status/main.py * Update scripts/release_issue_status/main.py * Update scripts/release_issue_status/main.py * Update scripts/release_issue_status/update_issue_body.py * Update scripts/release_issue_status/main.py * Update scripts/release_issue_status/update_issue_body.py * Update reply_generator.py * Update main.py * Update scripts/release_issue_status/update_issue_body.py Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * Update scripts/release_issue_status/update_issue_body.py Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * Update reply_generator.py * Update update_issue_body.py * Update main.py * Update main.py * Update update_issue_body.py * Update main.py * Update scripts/release_issue_status/main.py * Update main.py * Update reply_generator.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update update_issue_body.py * Update main.py * Update update_issue_body.py * Update reply_generator.py * Update update_issue_body.py * Update main.py * Update update_issue_body.py * Update update_issue_body.py * Update update_issue_body.py * Update update_issue_body.py * Update update_issue_body.py * Update main.py * Update main.py Co-authored-by: Zed <601306339@qq.com> Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com> Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.