Markdown blocks are not sending with incoming webhooks
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
インライン YAML の例と .github/workflows/payload.json から始め、リンクされている Slack Block Kit mrkdwn リファレンスを読んでください。両方の payload 形式で incoming-webhook リクエストを再現し、action が blocks をどのように処理するかを追跡してください。想定されるフォーマット動作が確認され、適切なテストまたは文書化された制限によってカバーされれば完了です。
索引モデルが 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:
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?
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 200
- 平均マージ
- 1分
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
slackapi/slack-github-action のほかの issue
-
docs
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
slackapi/slack-github-action#667 ·
-
discussion security semver:major
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
slackapi/slack-github-action#621 · コメント 1 件 · リアクション 1 件 ·
-
bug: Unexpected token 'o', "ok" is not valid JSON再び着手できるかも @zimeg が 60 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンdependencies question
slackapi/slack-github-action#671 · コメント 2 件 · 担当者 1 名 ·
-
needs info question
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
slackapi/slack-github-action#654 · コメント 7 件 · リアクション 5 件 ·
-
question
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
slackapi/slack-github-action#520 · コメント 1 件 ·
slackapi/slack-github-action の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
swc-project/swc#12516 ·
メンテナーはふだん 1 日以内に返信
-
feature-request
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
omegaup/omegaup#10323 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
area/frontend good first issue kind/cooldown
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kestra-io/kestra#20702 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Form-data fields are not parsed when importing a cURL request対応中かも @aayushbaluni が今日担当しました。 オープンbug status-new
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
bug MVP
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
saayam-for-all/webapp#1911 ·
メンテナーはふだん 1 日以内に返信