Escaping double quotes
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, yaml
- 领域
- ci-cd
调研方向
使用包含双引号的提交消息复现该工作流,然后审阅 issue 202 中讨论的 workaround 以及报告中链接的 sending-variables 文档。只有当部署通知发布完整的提交消息且不会破坏 action payload 时,该 issue 才算解决。
由索引模型根据 Issue 内容生成。
描述
I include the last commit message in my messaging, which works great until I recently did a revert and discovered that commit messages with double quotes break the action.
- name: Deploy Complete Success Notification
uses: slackapi/[email protected]
if: success()
env:
MESSAGE: "${{ github.event.workflow_run.head_commit.message || github.event.head_commit.message }}"
with:
method: chat.postMessage
token: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
payload: |
channel: monitoring
text: "FRONTEND: Deployment of '${{ env.MESSAGE }}' to ${{ github.ref_name }} Completed"
I've tried wrapping env.MESSAGE in toJSON (as mentioned as a solution in https://github.com/slackapi/slack-github-action/issues/202), but that does not address the issue with double quotes it seems. I'm also not seeing any suggestions for how to overcome in https://tools.slack.dev/slack-github-action/sending-variables. What is the proper way to get this working correctly?
- 主要语言
- 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 于 58 天前认领,目前没有进行中的 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
-
agent/scanner bug hive/hosted-available-lke648397-260827-5n31
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
rescript-lang/rescript#8765 ·
维护者通常 1 天内回复
-
feedback simulation workshop
难度 2/5 1-3 小时 新手友好度 62/100
githubnext/gh-aw-workshop#4417 ·
维护者通常 1 天内回复
-
[Good First Issue]: Add unit tests for NetworkVersionInfo可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Good First Issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 85/100
hiero-ledger/hiero-sdk-js#4489 ·
维护者通常 1 天内回复
-
Add: RiC Feed未关闭check:passed feeds:add
难度 1/5 1 小时以内 新手友好度 74/100
维护者通常 9 天内回复