Skip to content

relizy / SlackSocialConfig

Interface: SlackSocialConfig ​

Defined in: packages/relizy/src/types.ts:1340

Properties ​

announcements? ​

optional announcements?: SocialAnnouncement[]

Defined in: packages/relizy/src/types.ts:1408

The versions to announce and their content (title, message, links). Without it, every version is announced; with it, only the versions matching an entry.


changelog? ​

optional changelog?: SocialChangelog

Defined in: packages/relizy/src/types.ts:1382

The changelog of the Slack message.

  • full: commit bodies and PR/issue links included, rendered as rich text blocks (one per changelog section). Commit bodies follow changelog.includeCommitBody.
  • summary: commit titles only, in a single section capped at postMaxLength.
  • none (or false): no changelog. Can be overridden with the --slack-format CLI flag.

Default ​

ts
'summary'

channel? ​

optional channel?: string

Defined in: packages/relizy/src/types.ts:1357

Slack channel ID or name (e.g., "#releases" or "C1234567890"). Required when using token-based authentication. Ignored (with warning) when webhookUrl is set - the channel is baked into the webhook URL.


credentials? ​

optional credentials?: SlackCredentials

Defined in: packages/relizy/src/types.ts:1372

Slack credentials (optional - falls back to environment variables)


enabled? ​

optional enabled?: boolean

Defined in: packages/relizy/src/types.ts:1345

Enable Slack posting

Default ​

ts
false

exclude? ​

optional exclude?: SocialExclude

Defined in: packages/relizy/src/types.ts:1412

Versions never announced, even when an announcement matches them


noAuthors? ​

optional noAuthors?: boolean

Defined in: packages/relizy/src/types.ts:1397

Hide the contributors block in Slack messages. If config.noAuthors is true globally, contributors are always hidden regardless of this setting.

Default ​

ts
false

noPackages? ​

optional noPackages?: boolean

Defined in: packages/relizy/src/types.ts:1402

Hide the packages block (list of bumped packages with their before → after versions).

Default ​

ts
false

onlyStable? ​

optional onlyStable?: boolean

Defined in: packages/relizy/src/types.ts:1351

Skip Slack posting for prerelease versions (alpha, beta, rc, etc.) Only stable versions will be posted to Slack

Default ​

ts
true

postMaxLength? ​

optional postMaxLength?: number

Defined in: packages/relizy/src/types.ts:1391

Maximum length (in characters) of the changelog rendered inside the Slack message. When exceeded, summary drops the last commits, full cuts the changelog where the limit is reached (even inside a commit body) with an ellipsis; the commits left out entirely are announced with an "… and N more changes" line. Defaults to 2500 in summary format (Slack's section limit is 3000) and to no limit in full format, where the message is only bounded by Slack's 50 blocks.


template? ​

optional template?: string

Defined in: packages/relizy/src/types.ts:1368

Custom message template Available variables: , , , , , , , , , (see SocialTemplateVariables)


webhookUrl? ​

optional webhookUrl?: string

Defined in: packages/relizy/src/types.ts:1363

Slack Incoming Webhook URL. When set, takes priority over token-based auth. Env fallback: SLACK_WEBHOOK_URL, RELIZY_SLACK_WEBHOOK_URL. See: https://api.slack.com/messaging/webhooks