Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

elizaos-plugin-github (Python)

Python implementation of the GitHub plugin for elizaOS.

Installation

pip install elizaos-plugin-github

Usage

from elizaos_plugin_github import GitHubConfig, GitHubService

# Create configuration
config = GitHubConfig(
    api_token="ghp_your_token_here",
    owner="my-org",
    repo="my-repo",
)

# Create service
service = GitHubService(config)

# Start service
await service.start()

# Create an issue
from elizaos_plugin_github.types import CreateIssueParams

issue = await service.create_issue(
    CreateIssueParams(
        owner="my-org",
        repo="my-repo",
        title="Bug: Something is broken",
        body="Description of the bug...",
        labels=["bug"],
    )
)
print(f"Created issue #{issue.number}")

# Create a pull request
from elizaos_plugin_github.types import CreatePullRequestParams

pr = await service.create_pull_request(
    CreatePullRequestParams(
        owner="my-org",
        repo="my-repo",
        title="Fix the bug",
        head="fix/bug-123",
        base="main",
    )
)
print(f"Created PR #{pr.number}")

# Stop service
await service.stop()

Configuration

The plugin can be configured via environment variables:

  • GITHUB_API_TOKEN (required): GitHub personal access token
  • GITHUB_OWNER: Default repository owner
  • GITHUB_REPO: Default repository name
  • GITHUB_BRANCH: Default branch (defaults to "main")
  • GITHUB_WEBHOOK_SECRET: Secret for webhook verification
  • GITHUB_APP_ID: GitHub App ID for app authentication
  • GITHUB_APP_PRIVATE_KEY: GitHub App private key
  • GITHUB_INSTALLATION_ID: GitHub App installation ID

Features

Repository Operations

  • Get repository information
  • List repositories

Issue Operations

  • Create issues
  • Get issue details
  • Update issues
  • List issues
  • Close/reopen issues

Pull Request Operations

  • Create pull requests
  • Get PR details
  • Update pull requests
  • List pull requests
  • Merge pull requests

Review Operations

  • Create reviews (approve, request changes, comment)
  • List reviews

Comment Operations

  • Create comments on issues/PRs
  • List comments

Branch Operations

  • Create branches
  • Delete branches
  • List branches

File Operations

  • Get file content
  • List directory contents

Commit Operations

  • Create commits with file changes

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Type checking
mypy elizaos_plugin_github

# Linting
ruff check .
ruff format .

License

MIT

Metadata

Release files for elizaos-plugin-github 2.0.0a5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elizaos-plugin-github 2.0.0a5
File Size Uploaded
elizaos_plugin_github-2.0.0a5.tar.gz 19.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elizaos-plugin-github 2.0.0a5
File Interpreter ABI Platform
elizaos_plugin_github-2.0.0a5-py3-none-any.whl Python 3 none any Details

Total release size: 43.7 kB

Release files / elizaos_plugin_github-2.0.0a5.tar.gz

Download URL elizaos_plugin_github-2.0.0a5.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0af942016ffd9b56bbc60cdad78a29d5427f88c095faba2177710557e90e8440
BLAKE2b-256 checksum
How to use checksums
be286dcff313ff14de65291a6f5b5433ac43af5c51b69debae166f0fe802a6b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / elizaos_plugin_github-2.0.0a5-py3-none-any.whl

Download URL elizaos_plugin_github-2.0.0a5-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64cd394cbee42ac47bb5218b2018f980378862420ae77e5872d2ab7678478c5c
BLAKE2b-256 checksum
How to use checksums
89f75e441d7c87a12e6f2c16de951470607d980078c7b2c09d5136d06a07b1eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

2.0.0a5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page