Markdown blocks are not sending with incoming webhooks
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
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
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:
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
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
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de slackapi/slack-github-action
-
docs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
slackapi/slack-github-action#667 ·
-
discussion security semver:major
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
slackapi/slack-github-action#621 · 1 comentario · 1 reacción ·
-
bug: Unexpected token 'o', "ok" is not valid JSONQuizá libre de nuevo @zimeg la tomó hace 59 días y no hay ningún pull request abierto. Abiertodependencies question
slackapi/slack-github-action#671 · 2 comentarios · 1 asignado ·
-
needs info question
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
slackapi/slack-github-action#654 · 7 comentarios · 5 reacciones ·
-
question
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
slackapi/slack-github-action#520 · 1 comentario ·
Todos los issues de slackapi/slack-github-action
Issues similares
-
documentation good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
bug release:v5.56
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Jason-Vaughan/TangleClaw#2270 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
style-dictionary/style-dictionary#1773 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
SignalK/signalk-server#3143 ·
Los mantenedores suelen responder en 1 día