Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

决定把gitblog和kb结合起来 #189

Open
yihong0618 opened this issue Sep 23, 2020 · 10 comments
Open

决定把gitblog和kb结合起来 #189

yihong0618 opened this issue Sep 23, 2020 · 10 comments
Labels
技术文章 技术文章

Comments

@yihong0618
Copy link
Owner

yihong0618 commented Sep 23, 2020

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

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

目前有的问题。

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

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

@yihong0618 yihong0618 added 技术文章 技术文章 kb kb labels Sep 23, 2020
@yihong0618
Copy link
Owner Author

测试

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

@yihong0618
Copy link
Owner Author

Split bash string by newline characters

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

@yihong0618
Copy link
Owner Author

say yes with shell script

echo yes | ./test.sh

@yihong0618
Copy link
Owner Author

yihong

Let us have a try.

@yihong0618
Copy link
Owner Author

Split bash string by newline characters

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

@yihong0618
Copy link
Owner Author

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

@yihong0618
Copy link
Owner Author

Split bash string by newline characters

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

@isliuyaoyao
Copy link

# 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
Copy link
Owner Author

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

@yihong0618 yihong0618 removed the kb kb label Nov 26, 2020
@afwu
Copy link

afwu commented Mar 21, 2023

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

是什么呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
技术文章 技术文章
Projects
None yet
Development

No branches or pull requests

3 participants