Skip to content

Commit 38709e0

Browse files
authored
chore: update version to 3.1.1 (#114)
1 parent bd9af93 commit 38709e0

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-github-pr-issue-analyser"
3-
version = "3.1.0"
3+
version = "3.1.1"
44
description = "MCP GitHub Issues Create/Update and PR Analyse"
55
readme = "README.md"
66
requires-python = ">=3.12"

src/mcp_github/ip_integration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@
2121
import logging
2222
import requests
2323
import traceback
24+
from os import getenv
2425
from typing import Dict, Any
2526
import requests.packages.urllib3.util.connection as urllib3_connection
2627

2728
# Set up logging for the application
2829
logging.getLogger(__name__)
2930
logging.basicConfig(level=logging.WARNING)
3031

32+
TIMEOUT = int(getenv('GITHUB_API_TIMEOUT', '5')) # seconds, configurable via env
33+
3134
class IPIntegration:
3235
def __init__(self, ipv4_api_url: str = None, ipv6_api_url: str = None) -> None:
3336
"""
@@ -58,7 +61,7 @@ def get_info(self, url: str) -> Dict[str, Any]:
5861
"""
5962

6063
try:
61-
response = requests.get(url)
64+
response = requests.get(url, timeout=TIMEOUT)
6265
response.raise_for_status()
6366
return response.json()
6467
except requests.RequestException as e:

uv.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)