Integration
GitHub Integration
Let your Hivelang bots inspect repositories, issues, and pull requests.
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 {
instructions {
Creates GitHub issues from bug reports.
}
capabilities {
github.createIssue
}
on user.message {
call github.createIssue with {
repo: "my-org/my-project",
title: "Bug: " + input,
body: "Reported via Bothive."
} as issue
respond with "✅ Issue created: " + issue.html_url
}
}