← All Plugins/platform.githubPython
AI-Agent-First Documentation
Raw .md/SKILL.md
Prompt your Agent: "Set up valstorm-plugin-github on our Open Valstorm workspace using platform.github and verify its routes and AI tools."

Open Valstorm GitHub App & CI/CD Pipeline Matrix Plugin (valstorm-plugin-github)

Connects GitHub Repositories, Pull Requests, Issues, and GitHub Actions CI/CD Live Pipeline Matrix Notifications to Open Valstorm (platform.github & platform.ci).


🤖 Agent-Assisted Quick Setup (Let the Valstorm Agent Set It Up)

1. Minimal Human Prerequisite

Install the GitHub CLI and authenticate:

bash
brew install gh
gh auth login

2. Copy-Paste Prompt for Your Valstorm Agent

text
Set up the GitHub & CI/CD plugin (`valstorm-plugin-github`) for my workspace using `plugins/valstorm-plugin-github/README.md`:
1. Save my GitHub token or GitHub App installation credentials via `github_save_credentials`.
2. Configure the GitHub Actions CI/CD webhook secret and Slack notification channel via `github_configure_ci_settings`.
3. Verify repository access via `github_list_repositories`.

🛠️ End-to-End DIY Setup Guide

Step 1: Configure GitHub App or Fine-Grained Token

  1. In GitHub -> Settings -> Developer settings -> GitHub Apps, create or open your GitHub App (or create a Fine-Grained Personal Access Token with Contents, Pull requests, Issues, and Actions read/write permissions).
  2. Set the Callback URL to https://<your-api-domain>/v1/github/auth/callback.
  3. Set the Webhook URL to https://<your-api-domain>/v1/ci/webhook with a Webhook Secret (GITHUB_WEBHOOK_SECRET), and subscribe to push, workflow_run, and deployment_status events.

Step 2: Save Credentials in Valstorm

python
await platform.github.save_credentials(
    access_token="github_pat_...",
    installation_id=12345678,
    account_login="valstorm",
    webhook_secret="your_webhook_secret",
    git_slack_channel="C0BQH94DN5U",
)

Step 3: Run Tests

bash
uv run --project apps/open-api pytest apps/open-api/tests/test_plugin_github.py -v