yihong0618 / gitblog

People Die, but Long Live GitHub

Home Page:https://yihong0618.github.io/gitblog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

决定把gitblog和kb结合起来

yihong0618 opened this issue · comments

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

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

目前有的问题。

  1. 需要增加直接写的功能
  2. 本地的怎么合并
  3. 是否需要提pr
  4. 能否快速导出
  5. 每次评论都触发有必要么?是结合之前的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"
commented
# 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/

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

commented

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

是什么呢?