Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Markdown blocks are not sending with incoming webhooks

Abierto
#440 6 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
github-actions
Área
api, ci-cd

Línea de trabajo

Comienza con el ejemplo de YAML en línea y .github/workflows/payload.json; después, lee la referencia enlazada de Slack Block Kit mrkdwn. Reproduce la solicitud de incoming-webhook con ambas formas de payload y sigue cómo la action gestiona los bloques; se considerará terminado cuando el comportamiento de formato esperado esté confirmado y cubierto por una prueba adecuada o una limitación documentada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

auto-triage-skip bug question server-side issue

Hey folks, I'm trying to send a message with some markdown in it, but its not being honored.

According to the reference these should work?
https://api.slack.com/reference/block-kit/blocks#markdown

Here's my example with inline blocks

- name: Announce Release
    uses: slackapi/[email protected]
    with:
      webhook: ${{ secrets.MY_SECRET }}
      webhook-type: incoming-webhook
      errors: true
      payload: |
        text: "New Release: Shared Helm Chart: 1.2.3"
        blocks:
          - type: header
            text:
              type: plain_text
              text: ":tada: New Release: Shared Helm Chart: 1.2.3"
          - type: divider
          - type: section
            text:
              type: mrkdwn
              text: "## :notebook: Release notes"
          - type: section
            text:
              type: mrkdwn
              text: Blah
          - type: divider
          - type: section
            text:
              type: mrkdwn
              text: "** :computer: Release URL**"
          - type: section
            text:
              type: mrkdwn
              text: http://my_url.com

And this is what it ends up looking like:
Image

I have also tried with a payload file:
GHA

- name: Announce Release
      if: github.event_name == 'push' && github.ref == 'refs/heads/slack-releases3'
      uses: slackapi/[email protected]
      with:
        payload-file-path: .github/workflows/payload.json
        webhook: ${{ secrets.MY_SECRET }}
        webhook-type: incoming-webhook
        errors: true

JSON

{
  "channel": "${{ env.SLACK_CHANNEL_ID }}",
  "text": "Messages met made meetings meet",
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "# Slack notifications sound following the most recent commit pushed"
      }
    }
  ]
}

Result
Image

I would expect to be able to use bold and

HEADER

and other markdown fun in a block called mrkdwn.

Am I doing something wrong?

Lenguaje dominante
JavaScript
Estrellas
1.4k
Forks
200
Merge medio
1 min
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de slackapi/slack-github-action

Todos los issues de slackapi/slack-github-action

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.