![](/img/trans.png)
[英]how do I fix “/app/scripts/[foo].coffee is using deprecated documentation syntax” in hubot?
[英]Hubot Error: Script is using deprecated documentation syntax
請查看“ Hubot腳本文檔”的“ 文檔腳本 ”部分
截至2018-10-10的當前格式為:
# Description:
# <description of the scripts functionality>
#
# Dependencies:
# "<module name>": "<module version>"
#
# Configuration:
# LIST_OF_ENV_VARS_TO_SET
#
# Commands:
# hubot <trigger> - <what the respond trigger does>
# <trigger> - <what the hear trigger does>
#
# Notes:
# <optional notes required for the script>
#
# Author:
# <github username of the original script author>
在腳本頂部包含標題。 如果不遵循上述格式,hubot將報告棄用警告。
在我看來,使用這種格式似乎可行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.