Skip to content

Commit 18bc5a3

Browse files
saidsefCopilot
andauthored
chore: version bump and GitHub integration improvements (#75)
* chore: mcp minor version bump * chore: get issues / prs state * chore: remove duplicate Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 7cc94a9 commit 18bc5a3

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[project]
22
name = "mcp-github-pr-issue-analyser"
3-
version = "2.4.3"
3+
version = "2.5.0"
44
description = "MCP GitHub Issues Create/Update and PR Analyse"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
authors = [
88
{ name = "saidsef" }
99
]
1010
dependencies = [
11-
"mcp[cli]==1.12.0",
11+
"mcp[cli]==1.12.2",
1212
"requests==2.32.4",
1313
"uv==0.8.0",
1414
]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-i https://pypi.org/simple
2-
mcp[cli]==1.12.0
2+
mcp[cli]==1.12.2
33
requests==2.32.4
44
uv==0.8.0

src/mcp_github/github_integration.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ def list_open_issues_prs(self, repo_owner: str, issue: Literal['pr', 'issue'] =
302302
"created_at": item['created_at'],
303303
"updated_at": item['updated_at'],
304304
"author": item['user']['login'],
305-
"label_names": [label['name'] for label in item.get('labels', [])]
305+
"label_names": [label['name'] for label in item.get('labels', [])],
306+
"is_draft": item.get('draft', False),
306307
}
307308
for item in pr_data['items']
308309
]
@@ -407,7 +408,7 @@ def get_latest_sha(self, repo_owner: str, repo_name: str) -> Optional[str]:
407408
Logs errors and warnings if the request fails, the response is invalid, or no commits are found.
408409
Returns None in case of exceptions or if the repository has no commits.
409410
"""
410-
logging.info(f"Fetching latest commit SHA for {repo_owner}/{repo_name}")
411+
logging.info({"status": "info", "message": f"Fetching latest commit SHA for {repo_owner}/{repo_name}"})
411412

412413
# Construct the commits URL
413414
commits_url = f"https://api.github.com/repos/{repo_owner}/{repo_name}/commits"
@@ -420,10 +421,10 @@ def get_latest_sha(self, repo_owner: str, repo_name: str) -> Optional[str]:
420421

421422
if commits_data:
422423
latest_sha = commits_data[0]['sha']
423-
logging.info(f"Latest commit SHA fetched successfully")
424+
logging.info({"status": "info", "message": f"Latest commit SHA: {latest_sha}"})
424425
return latest_sha
425426
else:
426-
logging.warning("No commits found in the repository")
427+
logging.warning({"status": "warning", "message": "No commits found in the repository"})
427428
return None
428429

429430
except Exception 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)