workflows

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Signals = []string{
	"github.events.pull_request",
	"github.events.pull_request_review",
	"github.events.pull_request_review_comment",
	"github.events.pull_request_review_thread",

	"github.events.issue_comment",
}

Signals is a list of signal names that RevChat receives from Timpani, to trigger event handling workflows.

This is based on:

Functions

func DrainSignals

func DrainSignals(ctx workflow.Context) bool

DrainSignals drains all pending Signals channels, and waits for their corresponding workflow executions to complete in order. This is called in preparation for resetting the dispatcher workflow's history.

func IssueCommentWorkflow

func IssueCommentWorkflow(ctx workflow.Context, event github.IssueCommentEvent) error

IssueCommentWorkflow is an entrypoint to mirror all GitHub issue comment events in the PR's Slack channel: https://docs.github.com/en/webhooks/webhook-events-and-payloads#issue_comment

func PullRequestReviewCommentWorkflow

func PullRequestReviewCommentWorkflow(ctx workflow.Context, event github.PullRequestReviewCommentEvent) error

PullRequestReviewCommentWorkflow is an entrypoint to mirror all GitHub pull request review comment events in the PR's Slack channel: https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request_review_comment

func PullRequestReviewThreadWorkflow

func PullRequestReviewThreadWorkflow(ctx workflow.Context, event github.PullRequestReviewThreadEvent) error

PullRequestReviewThreadWorkflow is an entrypoint to mirror all GitHub pull request review thread (i.e. comment resolution) events in the PR's Slack channel: https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request_review_thread

func PullRequestReviewWorkflow

func PullRequestReviewWorkflow(ctx workflow.Context, event github.PullRequestReviewEvent) error

PullRequestReviewWorkflow is an entrypoint to mirror all GitHub pull request review events in the PR's Slack channel: https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request_review

func RegisterSignals

func RegisterSignals(ctx workflow.Context, sel workflow.Selector)

RegisterSignals routes Signals to their registered workflows.

func RegisterWorkflows

func RegisterWorkflows(cmd *cli.Command, w worker.Worker)

RegisterWorkflows maps event-handling workflow functions to Signals.

Types

type Config

type Config struct {
	SlackChannelNamePrefix    string
	SlackChannelNameMaxLength int
	SlackChannelsArePrivate   bool

	LinkifyMap map[string]string
}

func (Config) PullRequestWorkflow

func (c Config) PullRequestWorkflow(ctx workflow.Context, event github.PullRequestEvent) error

PullRequestWorkflow is an entrypoint to handle all GitHub pull request events: https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL