mirror of
https://github.com/taigrr/github-to-signal.git
synced 2026-04-02 03:09:09 -07:00
56 lines
1.7 KiB
TOML
56 lines
1.7 KiB
TOML
# GitHub webhook secret (set in your GitHub webhook settings)
|
|
webhook_secret = ""
|
|
|
|
# Shared secret for custom endpoints (validated via X-CI-Secret header).
|
|
# Leave empty to allow unauthenticated access to custom endpoints.
|
|
ci_secret = ""
|
|
|
|
# Address to listen on
|
|
listen_addr = ":9900"
|
|
|
|
# signal-cli JSON-RPC endpoint
|
|
signal_url = "http://127.0.0.1:8081"
|
|
|
|
# signal-cli account (phone number registered with signal-cli)
|
|
signal_account = "+YOURNUMBER"
|
|
|
|
# Signal recipient UUID for DM notifications (used by GitHub webhook handler)
|
|
signal_recipient = ""
|
|
|
|
# OR: Signal group ID for group notifications (overrides signal_recipient)
|
|
# signal_group_id = ""
|
|
|
|
# Event filter — comma-separated list of event types to forward.
|
|
# Use "event" for all actions, or "event:action" for specific actions.
|
|
# Leave empty or omit to forward everything.
|
|
#
|
|
# Examples:
|
|
# events = "pull_request:opened, pull_request:closed, issues:opened"
|
|
# events = "push, pull_request, workflow_run"
|
|
# events = "pull_request:opened"
|
|
#
|
|
# Available events: push, issues, issue_comment, pull_request,
|
|
# pull_request_review, pull_request_review_comment, release,
|
|
# star, fork, workflow_run, create, delete
|
|
#
|
|
# events = ""
|
|
|
|
# Custom endpoints — each [[endpoints]] block registers a POST route
|
|
# that accepts {"source":"...","message":"..."} JSON and forwards the
|
|
# message to the listed Signal group IDs. Auth via X-CI-Secret header
|
|
# (if ci_secret is set).
|
|
#
|
|
# POST /prs -> sends to one group
|
|
# POST /releases -> sends to two groups
|
|
|
|
[[endpoints]]
|
|
slug = "/prs"
|
|
group_ids = ["group-id-for-pr-notifications"]
|
|
|
|
[[endpoints]]
|
|
slug = "/releases"
|
|
group_ids = [
|
|
"group-id-for-release-channel-1",
|
|
"group-id-for-release-channel-2",
|
|
]
|