0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/signals/github
Ward Peeters b2ce66cef8
chore: run lint-staged for root files and the 16 packages without a config (#29898)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
History 2026-11-10 14:08:55 +01:00
..
src refactor: use Web Crypto where synchronous contracts stay intact (#25462) 2026-09-30 09:45:11 +02:00
CHANGELOG.md chore: version - exit prerelease mode 2026-10-21 11:26:39 +00:00
lint-staged.config.js chore: run lint-staged for root files and the 16 packages without a config (#29898) 2026-11-10 14:08:55 +01:00
package.json chore(deps): update build tools (#27997) 2026-10-22 14:33:21 +02:00
README.md chore(*): Update/unify/add READMEs (#22858) 2026-09-02 14:36:59 +02:00
tsconfig.build.json feat(core): add SignalProvider abstraction + @mastra/github-signals package (#17577) 2026-06-04 14:40:56 -05:00
tsconfig.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
tsdown.config.ts chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
vitest.config.ts feat(core): add SignalProvider abstraction + @mastra/github-signals package (#17577) 2026-06-04 14:40:56 -05:00

@mastra/github-signals

@mastra/github-signals lets an agent subscribe a conversation thread to a GitHub pull request and receive new commits, review comments, thread-resolution changes, and merge or close events. Use it for long-running coding agents that need to resume work when a pull request changes.

Installation

npm install @mastra/github-signals

Usage

Register one GithubSignals instance on the agent that should receive pull request updates.

import { Agent } from '@mastra/core/agent';
import { GithubSignals } from '@mastra/github-signals';

const githubSignals = new GithubSignals({ pollIntervalMs: 5 * 60 * 1000 });

export const reviewAgent = new Agent({
  id: 'review-agent',
  name: 'Pull request reviewer',
  instructions: 'Review pull requests and respond when new activity arrives.',
  model: 'openai/gpt-5.6-sol',
  signals: [githubSignals],
});

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.