Body not formatted as markdown
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, javascript
调研方向
复现提供的由 release 触发的 workflow,并检查 Action 如何处理 Slack payload 中的 release 正文。将渲染结果与预期截图和收到的截图进行比较;当生成的 release notes 以预期的格式出现在通知中时,即表示完成。
由索引模型根据 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/[email protected]
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.4k
- 派生
- 200
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 8
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 个 reaction ·
-
bug: Unexpected token 'o', "ok" is not valid JSON可能重新可做 @zimeg 于 59 天前认领,目前没有进行中的 PR。 未关闭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 个 reaction ·
-
question
难度 5/5 一周以上 新手友好度 20/100
slackapi/slack-github-action#520 · 1 条评论 ·
查看 slackapi/slack-github-action 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
capricorn86/happy-dom#2485 ·
维护者通常 2 天内回复
-
难度 2/5 1 小时以内 新手友好度 74/100
siyuan-note/siyuan#20429 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
yjh051108/dsh-routing-suite#216 ·
-
[Bug] Completion info popup (.cm-completionInfo) ignores the configured editor font可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug user-priority/P2
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复