mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
use endswith
This commit is contained in:
@ -123,7 +123,7 @@ async def handle_new_pr_opened(body: Dict[str, Any],
|
|||||||
agent: PRAgent):
|
agent: PRAgent):
|
||||||
# logic to ignore PRs opened by bot
|
# logic to ignore PRs opened by bot
|
||||||
if get_settings().get("GITHUB_APP.IGNORE_BOT_PR", False):
|
if get_settings().get("GITHUB_APP.IGNORE_BOT_PR", False):
|
||||||
if re.match('.+\[bot]$', sender) is not None:
|
if sender.endswith('[bot]'):
|
||||||
get_logger().info(f"Ignoring PR by sender '{sender}' due to github_app.ignore_bot_pr setting")
|
get_logger().info(f"Ignoring PR by sender '{sender}' due to github_app.ignore_bot_pr setting")
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user