mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 21:00:40 +08:00
isinstance
This commit is contained in:
@ -56,13 +56,13 @@ async def run_action():
|
|||||||
pr_url = event_payload.get("pull_request", {}).get("url")
|
pr_url = event_payload.get("pull_request", {}).get("url")
|
||||||
if pr_url:
|
if pr_url:
|
||||||
auto_review = os.environ.get('github_action.auto_review', None)
|
auto_review = os.environ.get('github_action.auto_review', None)
|
||||||
if auto_review is None or auto_review.lower() == 'true':
|
if auto_review is None or (isinstance(auto_review, str) and auto_review.lower() == 'true'):
|
||||||
await PRReviewer(pr_url).run()
|
await PRReviewer(pr_url).run()
|
||||||
auto_describe = os.environ.get('github_action.auto_describe', None)
|
auto_describe = os.environ.get('github_action.auto_describe', None)
|
||||||
if auto_describe.lower() == 'true':
|
if isinstance(auto_describe, str) and auto_describe.lower() == 'true':
|
||||||
await PRDescription(pr_url).run()
|
await PRDescription(pr_url).run()
|
||||||
auto_improve = os.environ.get('github_action.auto_improve', None)
|
auto_improve = os.environ.get('github_action.auto_improve', None)
|
||||||
if auto_improve.lower() == 'true':
|
if isinstance(auto_improve, str) and auto_improve.lower() == 'true':
|
||||||
await PRCodeSuggestions(pr_url).run()
|
await PRCodeSuggestions(pr_url).run()
|
||||||
|
|
||||||
# Handle issue comment event
|
# Handle issue comment event
|
||||||
|
Reference in New Issue
Block a user