Integration

GitHub Integration

Let your Hivelang bots inspect repositories, issues, and pull requests.

Setup

  1. Go to Settings → Developer settings → Personal access tokens on GitHub.
  2. Generate a new token with repo and issues scope.
  3. In your Bothive Dashboard → Integrations, enable GitHub.
  4. 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 } }

How helpful was this page?

Not helpfulExcellent