INNER CODE UNIT · Python

handle_add_issue_comment

nolabs-ai/deepfabric · tools-sdk/components/github/app.py:560

def handle_add_issue_comment(args: dict) -> dict:
    """Add a comment to an issue (requires write permission)."""
    owner = args.get("owner")
    repo = args.get("repo")
    issue_number = args.get("issue_number")
    body = args.get("body")

    if not owner or not repo or issue_number is None or not body:
        return {"success": False, "result": "Missing required: owner, repo, issue_number, body", "error_type": "InvalidArguments"}

    # Validate repo access
    allowed, error = validate_repo_access(owner, repo)
    if not allowed:
        return {"success": False, "result": error, "error_type": "RepoNotAllowed"}

    # Validate write permission
    allowed, error = validate_write_operation("gh_add_issue_comment")
    if not allowed:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…