Skip to content
yihong0618's Blog
Go back

决定把gitblog和kb结合起来

Updated:

Originally published as GitHub issue #189.

最近trending上发现一个小知识管理系统,深得我心。还贡献了下代码想了一下方案,貌似可行。

  1. 增加kb标签(可以加上其它标签)
  2. 给issue打kb标签
  3. 写评论,利用GitHub Actions触发,自动同步到kb中
  4. 导出
  5. commit

目前有的问题。

  1. 需要增加直接写的功能
  2. 本地的怎么合并
  3. 是否需要提pr
  4. 能否快速导出
  5. 每次评论都触发有必要么?是结合之前的action还是新写一个

搞定了!! 开心,剩下的完善就可以了。

Comments

yihong0618

View comment · 2020-09-24T10:47:44Z

测试

第一个测试内容。看看能成功添加么

yihong0618

View comment · 2020-09-24T10:49:56Z

Split bash string by newline characters

IFS=$'\n' read -rd '' -a y <<<"$x"

yihong0618

View comment · 2020-09-24T10:51:54Z

say yes with shell script

echo yes | ./test.sh

yihong0618

View comment · 2020-09-24T11:02:14Z

yihong

Let us have a try.

yihong0618

View comment · 2020-09-24T11:06:36Z

Split bash string by newline characters

IFS=$'\n' read -rd '' -a y <<<"$x"

yihong0618

View comment · 2020-09-24T15:57:51Z

试试成功了没有 这一行很重要 花费了我好久这个坑。

yihong0618

View comment · 2020-09-24T16:01:30Z

Split bash string by newline characters

IFS=$'\r\n' read -rd '' -a y <<<"$x"

isliuyaoyao

View comment · 2020-10-21T06:51:47Z


# 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/

yihong0618

View comment · 2020-11-26T02:32:33Z

不用这个了,发现了更好的。

afwu

View comment · 2023-03-21T08:22:55Z

不用这个了,发现了更好的。

是什么呢?



Previous Post
Random Thoughts
Next Post
写诗吧