Skip to content

Latest commit

History

History
200 lines (172 loc) 路 6.82 KB

File metadata and controls

200 lines (172 loc) 路 6.82 KB

Mastodon

Posts a status to a Mastodon server.

YAML
partial$announce/yaml/common-head.adoc

    # The Mastodon server.
    # [exclamation triangle]
    host: https://my.mastodonserver.org

    # The access token to use.
    # If left unspecified, the `JRELEASER_MASTODON_ACCESS_TOKEN`
    # environment variable must be defined.
    # [exclamation triangle] [eye slash]
    accessToken: __DO_NOT_SET_HERE__

    # The announcement message.
    # Review the available reference:name-templates.adoc.
    # [dot circle] [file alt]
    status: '馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}'

    # The announcement messages.
    # Review the available reference:name-templates.adoc.
    # [dot circle] [file alt]
    statuses:
      - '馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}'
      - 'New and exciting features added to {{projectNameCapitalized}} {{projectVersion}}'

    # Path to a template file that contains a list of statuses.
    # Review the available reference:name-templates.adoc.
    # [dot circle] [file alt]
    statusTemplate: path/to/template/mastodon.tpl
TOML
partial$announce/toml/common-head.adoc

  # The Mastodon server.
  # [exclamation triangle]
  host = "https://my.mastodonserver.org"

  # The access token to use.
  # If left unspecified, the `JRELEASER_MASTODON_ACCESS_TOKEN`
  # environment variable must be defined.
  # [exclamation triangle] [eye slash]
  accessToken = "__DO_NOT_SET_HERE__"

  # The announcement message.
  # Review the available reference:name-templates.adoc.
  # [dot circle] [file alt]
  status = "馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}"

  # The announcement message.
  # Review the available reference:name-templates.adoc.
  # [dot circle] [file alt]
  statuses = ["馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}", "New and exciting featurer added to {{projectNameCapitalized}} {{projectVersion}}"]

  # Path to a template file that contains a list of statuses.
  # Review the available reference:name-templates.adoc.
  # [dot circle] [file alt]
  statusTemplate = "path/to/template/mastodon.tpl"
JSON
partial$announce/json/common-head.adoc

      // The Mastodon server.
      // [exclamation triangle]
      "host": "https://my.mastodonserver.org",

      // The access token to use.
      // If left unspecified, the `JRELEASER_MASTODON_ACCESS_TOKEN`
      // environment variable must be defined.
      // [exclamation triangle] [eye slash]
      "accessToken": "__DO_NOT_SET_HERE__",

      // The announcement message.
      // Review the available reference:name-templates.adoc.
      // [dot circle] [file alt]
      "status": "馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}"

      // The announcement message.
      // Review the available reference:name-templates.adoc.
      // [dot circle] [file alt]
      "statuses": [
        "馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}","New and exciting featurer added to {{projectNameCapitalized}} {{projectVersion}}"],

      // Path to a template file that contains a list of statuses.
      // Review the available reference:name-templates.adoc.
      // [dot circle] [file alt]
      "statusTemplate": "path/to/template/mastodon.tpl"
partial$announce/json/common-footer.adoc
Maven
partial$announce/maven/common-head.adoc

      <!--
        The Mastodon server.
        [exclamation triangle]
      -->
      <host>https://my.mastodonserver.org</host>

      <!--
        The access token to use.
        If left unspecified, the `JRELEASER_MASTODON_ACCESS_TOKEN`
        environment variable must be defined.
        [exclamation triangle] [eye slash]
      -->
      <accessToken>__DO_NOT_SET_HERE__</accessToken>

      <!--
        The announcement message.
        Review the available reference:name-templates.adoc.
        [dot circle] [file alt]
      -->
      <status>馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}</status>

      <!--
        The announcement message.
        Review the available reference:name-templates.adoc.
        [dot circle] [file alt]
      -->
      <statuses>
        <status>馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}</status>
        <status>New and exciting featurer added to {{projectNameCapitalized}} {{projectVersion}}</status>
      </statuses>

      <!-- Path to a template file that contains a list of statuses.
       Review the available   reference:name-templates.adoc.
         [dot circle] [file alt]
      -->
      <statusTemplate>path/to/template/mastodon.tpl</statusTemplate>
partial$announce/maven/common-footer.adoc
Gradle
partial$announce/gradle/common-head.adoc

      // The Mastodon server.
      // [exclamation triangle]
      host = 'https://my.mastodonserver.org'

      // The access token to use.
      // If left unspecified, the `JRELEASER_MASTODON_ACCESS_TOKEN`
      // environment variable must be defined.
      // [exclamation triangle] [eye slash]
      accessToken = '__DO_NOT_SET_HERE__'

      // The announcement message.
      // Review the available reference:name-templates.adoc.
      // [dot circle] [file alt]
      status = '馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}'

      // The announcement message.
      // Review the available reference:name-templates.adoc.
      // [dot circle] [file alt]
      statuses = [
        '馃殌 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}','New and exciting featurer added to {{projectNameCapitalized}} {{projectVersion}}']

      // Path to a template file that contains a list of statuses.
      // Review the available reference:name-templates.adoc.
      // [dot circle] [file alt]
      statusTemplate = 'path/to/template/mastodon.tpl'
partial$announce/gradle/common-footer.adoc