Integration
GitHub Integration
Automate repository workflows with your Hivelang bots.
Setup
- Go to Settings → Developer settings → Personal access tokens on GitHub.
- Generate a new token with
repoandissuesscope. - In your Bothive Dashboard → Integrations, enable GitHub.
- Paste your token to connect your account.
Available Tools
integrations.github.create_issue(repo, title, body?)Create a new issue in a repository.
integrations.github.list_issues(repo, state?)List issues in a repository. State: open, closed, all.
integrations.github.create_pr(repo, title, head, base, body?)Open a pull request from head branch to base branch.
integrations.github.add_comment(repo, issue_number, body)Add a comment to an issue or pull request.
Example: Bug Report Bot
bot "BugReporter"
description "Creates GitHub issues from bug reports"
on input
say "📝 Creating issue..."
call integrations.github.create_issue(
repo: "my-org/my-project",
title: f"Bug: {input}",
body: f"Reported via BotHive at {timestamp}"
) as issue
say f"✅ Issue created: {issue.html_url}"
end
end