Body not formatted as markdown
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- github-actions, javascript
調査の方向性
提供されたリリースによってトリガーされる workflow を再現し、Action が Slack payload 内のリリース本文をどのように処理するかを確認します。レンダリングされた結果を期待されるスクリーンショットおよび受信したスクリーンショットと比較します。生成されたリリースノートが意図したフォーマットで通知に表示されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When creating a release using the auto generated release notes, which is markdown. The body ${{ github.release.event.body }} is not being formatted as expected
Workflow
on:
release:
types:
- released
- prereleased
jobs:
notify:
runs-on: ubuntu-latest
steps:
- run: echo "${{ github.event.release.body || 'No release body provided' }}"
shell: bash
- run: |
echo "Release event detected: ${{ github.event_name }}"
echo "Release name: ${{ github.event.release.name || github.event.release.tag_name }}"
echo "Release body: ${{ github.event.release.body }}"
echo "Release URL: ${{ github.event.release.html_url }}"
echo "Release is a pre-release: ${{ github.event.release.prerelease }}"
echo "Workflow run ID: ${{ github.run_id }}"
echo "Repository: ${{ github.repository }}"
echo "Server URL: ${{ github.server_url }}"
- name: Send Slack Notification
uses: slackapi/slack-github-action@v2.1.0
with:
webhook-type: incoming-webhook
webhook: "${{ secrets.SLACK_WEBHOOK_URL }}"
payload: |
text: "🚀 🔖 ✨ Release notice ${{ github.event.release.name || github.event.release.tag_name }} ✨ 🔖 🚀"
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "*🚀 🔖 ✨ Release notice ${{ github.event.release.name || github.event.release.tag_name }} ✨ 🔖 🚀*"
- type: "context"
elements:
- type: "mrkdwn"
text: "*Build for*: ${{ github.event.release.prerelease && 'Stage' || 'Production' }}"
- type: "mrkdwn"
text: "*Version*: ${{ github.event.release.tag_name }}"
- type: "divider"
- type: "section"
text:
type: "mrkdwn"
text: "${{ github.event.release.body }}"
- type: "divider"
- type: "context"
elements:
- type: "mrkdwn"
text: "<${{ github.event.release.html_url }}|*Full Changelog*>"
- type: "mrkdwn"
text: "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow Run>"
Expected:
Recieved:
- 主要言語
- JavaScript
- スター
- 1.3k
- フォーク
- 200
- 平均マージ
- 2時間 59分
- マージ済み PR(30日)
- 6
コントリビューションガイド
はじめの一歩
- 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 件 ·
-
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時間 初心者へのやさしさ 65/100
antfu-collective/icones#398 ·
-
ECmail.com オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
wesbos/burner-email-providers#554 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
components-web-app/docs#92 ·