gitblog icon indicating copy to clipboard operation
gitblog copied to clipboard

决定把gitblog和kb结合起来

Open yihong0618 opened this issue 3 years ago • 10 comments

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

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

目前有的问题。

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

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

yihong0618 avatar Sep 23 '20 01:09 yihong0618

测试

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

yihong0618 avatar Sep 24 '20 10:09 yihong0618

Split bash string by newline characters

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

yihong0618 avatar Sep 24 '20 10:09 yihong0618

say yes with shell script

echo yes | ./test.sh

yihong0618 avatar Sep 24 '20 10:09 yihong0618

yihong

Let us have a try.

yihong0618 avatar Sep 24 '20 11:09 yihong0618

Split bash string by newline characters

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

yihong0618 avatar Sep 24 '20 11:09 yihong0618

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

yihong0618 avatar Sep 24 '20 15:09 yihong0618

Split bash string by newline characters

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

yihong0618 avatar Sep 24 '20 16:09 yihong0618


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

isliuyaoyao avatar Oct 21 '20 06:10 isliuyaoyao

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

yihong0618 avatar Nov 26 '20 02:11 yihong0618

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

是什么呢?

afwu avatar Mar 21 '23 08:03 afwu