gitblog
gitblog copied to clipboard
决定把gitblog和kb结合起来
最近trending上发现一个小知识管理系统,深得我心。还贡献了下代码想了一下方案,貌似可行。
- 增加kb标签(可以加上其它标签)
- 给issue打kb标签
- 写评论,利用GitHub Actions触发,自动同步到kb中
- 导出
- commit
目前有的问题。
- 需要增加直接写的功能
- 本地的怎么合并
- 是否需要提pr
- 能否快速导出
- 每次评论都触发有必要么?是结合之前的action还是新写一个
搞定了!! 开心,剩下的完善就可以了。
测试
第一个测试内容。看看能成功添加么
Split bash string by newline characters
IFS=$'\n' read -rd '' -a y <<<"$x"
say yes with shell script
echo yes | ./test.sh
yihong
Let us have a try.
Split bash string by newline characters
IFS=$'\n' read -rd '' -a y <<<"$x"
试试成功了没有 这一行很重要 花费了我好久这个坑。
Split bash string by newline characters
IFS=$'\r\n' read -rd '' -a y <<<"$x"
# This is a sample Python script.
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint.
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print_hi('PyCharm')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
不用这个了,发现了更好的。
不用这个了,发现了更好的。
是什么呢?